mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
First check for PayPal subscriptions
This commit is contained in:
parent
ef031e593c
commit
388fd4d67b
1 changed files with 10 additions and 9 deletions
|
@ -243,15 +243,6 @@ class SingleProductBootstrap {
|
||||||
this.form(),
|
this.form(),
|
||||||
this.errorHandler
|
this.errorHandler
|
||||||
);
|
);
|
||||||
if (
|
|
||||||
! this.gateway.vaultingEnabled &&
|
|
||||||
[ 'subscription', 'variable-subscription' ].includes(
|
|
||||||
this.gateway.productType
|
|
||||||
) &&
|
|
||||||
this.gateway.manualRenewalEnabled !== '1'
|
|
||||||
) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
PayPalCommerceGateway.data_client_id.has_subscriptions &&
|
PayPalCommerceGateway.data_client_id.has_subscriptions &&
|
||||||
|
@ -288,6 +279,16 @@ class SingleProductBootstrap {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
! this.gateway.vaultingEnabled &&
|
||||||
|
[ 'subscription', 'variable-subscription' ].includes(
|
||||||
|
this.gateway.productType
|
||||||
|
) &&
|
||||||
|
this.gateway.manualRenewalEnabled !== '1'
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.renderer.render( actionHandler.configuration() );
|
this.renderer.render( actionHandler.configuration() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue