mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Don't render a button on single product page when vaulting is disabled
This commit is contained in:
parent
e67e9be95d
commit
3163593027
1 changed files with 5 additions and 0 deletions
|
@ -234,6 +234,11 @@ class SingleProductBootstap {
|
||||||
this.errorHandler
|
this.errorHandler
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(!this.gateway.vaultingEnabled){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
PayPalCommerceGateway.data_client_id.has_subscriptions &&
|
PayPalCommerceGateway.data_client_id.has_subscriptions &&
|
||||||
PayPalCommerceGateway.data_client_id.paypal_subscriptions_enabled
|
PayPalCommerceGateway.data_client_id.paypal_subscriptions_enabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue