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:
Narek Zakarian 2024-12-12 19:09:14 +04:00
parent 21eb11aee8
commit 3b85c5037f
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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' );
} }