mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add logic to enable/disable PayPal subscriptions feature
This commit is contained in:
parent
71c1937808
commit
72eb713fd4
7 changed files with 49 additions and 10 deletions
|
@ -64,7 +64,10 @@ class CheckoutBootstap {
|
|||
this.spinner
|
||||
);
|
||||
|
||||
if(PayPalCommerceGateway.data_client_id.has_subscriptions) {
|
||||
if(
|
||||
PayPalCommerceGateway.data_client_id.has_subscriptions
|
||||
&& PayPalCommerceGateway.data_client_id.paypal_subscriptions_enabled
|
||||
) {
|
||||
this.renderer.render(actionHandler.subscriptionsConfiguration());
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue