Don't render a button on single product page when vaulting is disabled

This commit is contained in:
inpsyde-maticluznar 2024-10-11 07:41:12 +02:00
parent e67e9be95d
commit 3163593027
No known key found for this signature in database
GPG key ID: D005973F231309F6

View file

@ -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