Show googlepay button conditionally

This commit is contained in:
Emili Castells Guasch 2024-07-16 16:45:32 +02:00
parent 895cd5c4c1
commit c941430b7d
4 changed files with 9 additions and 2 deletions

View file

@ -232,6 +232,8 @@ class CheckoutBootstap {
}
}
setVisible( '#ppc-button-ppcp-googlepay', isGooglePayMethod );
jQuery( document.body ).trigger( 'ppcp_checkout_rendered' );
}