Working on subscriptions (WIP)

This commit is contained in:
Emili Castells Guasch 2023-06-21 15:42:18 +02:00
parent 157dd41b7c
commit 06bfe33db2
5 changed files with 165 additions and 59 deletions

View file

@ -4,7 +4,7 @@ export const isChangePaymentPage = () => {
}
export const subscriptionHasPlan = () => {
if (PayPalCommerceGateway.data_client_id.has_subscriptions) {
if (PayPalCommerceGateway.data_client_id.paypal_subscriptions_enabled && PayPalCommerceGateway.data_client_id.has_subscriptions) {
if (PayPalCommerceGateway.subscription_plan_id !== '') {
return true;
}