mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Ensure saved card payment use default payment flow for free trial subscriptions
This commit is contained in:
parent
efbd36025d
commit
29e195e7f3
2 changed files with 21 additions and 1 deletions
|
@ -216,7 +216,10 @@ const bootstrap = () => {
|
|||
spinner
|
||||
);
|
||||
if ( typeof paypal.CardFields !== 'undefined' ) {
|
||||
if ( PayPalCommerceGateway.is_free_trial_cart ) {
|
||||
if (
|
||||
PayPalCommerceGateway.is_free_trial_cart &&
|
||||
PayPalCommerceGateway.user?.has_wc_card_payment_tokens !== true
|
||||
) {
|
||||
creditCardRenderer = new CardFieldsFreeTrialRenderer(
|
||||
PayPalCommerceGateway,
|
||||
errorHandler,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue