mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +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
|
||||
);
|
||||
|
||||
if(!this.gateway.vaultingEnabled){
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (
|
||||
PayPalCommerceGateway.data_client_id.has_subscriptions &&
|
||||
PayPalCommerceGateway.data_client_id.paypal_subscriptions_enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue