First check for PayPal subscriptions

This commit is contained in:
Narek Zakarian 2025-08-28 16:08:25 +04:00
parent ef031e593c
commit 388fd4d67b
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -243,15 +243,6 @@ class SingleProductBootstrap {
this.form(),
this.errorHandler
);
if (
! this.gateway.vaultingEnabled &&
[ 'subscription', 'variable-subscription' ].includes(
this.gateway.productType
) &&
this.gateway.manualRenewalEnabled !== '1'
) {
return;
}
if (
PayPalCommerceGateway.data_client_id.has_subscriptions &&
@ -288,6 +279,16 @@ class SingleProductBootstrap {
return;
}
if (
! this.gateway.vaultingEnabled &&
[ 'subscription', 'variable-subscription' ].includes(
this.gateway.productType
) &&
this.gateway.manualRenewalEnabled !== '1'
) {
return;
}
this.renderer.render( actionHandler.configuration() );
}