mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Working on subscriptions (WIP)
This commit is contained in:
parent
157dd41b7c
commit
06bfe33db2
5 changed files with 165 additions and 59 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue