mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Show button in PayPal gateway if Google Pay gateway is disabled
This commit is contained in:
parent
39ffbaa6e7
commit
e547d7e097
3 changed files with 23 additions and 9 deletions
|
@ -63,8 +63,9 @@ class GooglepayButton {
|
|||
.then( ( response ) => {
|
||||
if ( response.result ) {
|
||||
if (
|
||||
this.context === 'checkout' ||
|
||||
this.context === 'pay-now'
|
||||
( this.context === 'checkout' ||
|
||||
this.context === 'pay-now' ) &&
|
||||
this.buttonConfig.is_wc_gateway_enabled === '1'
|
||||
) {
|
||||
const wrapper = document.getElementById(
|
||||
'ppc-button-ppcp-googlepay'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue