mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Don't show buttons if cart contains free trial product and the stroe is not eligible for saving payment methods.
This commit is contained in:
parent
21eb11aee8
commit
3b85c5037f
1 changed files with 8 additions and 0 deletions
|
@ -59,6 +59,14 @@ if ( cartHasSubscriptionProducts( config.scriptData ) ) {
|
||||||
blockEnabled = false;
|
blockEnabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't show buttons if cart contains free trial product and the stroe is not eligible for saving payment methods.
|
||||||
|
if (
|
||||||
|
! config.scriptData.vault_v3_enabled &&
|
||||||
|
config.scriptData.is_free_trial_cart
|
||||||
|
) {
|
||||||
|
blockEnabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
features.push( 'subscriptions' );
|
features.push( 'subscriptions' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue