#fatematzuhora
1 messages · Page 1 of 1 (latest)
if we press the FAIL button or cancel the prompt
we're getting the following error
error.code: "payment_intent_authentication_failure"
error.message: "We are unable to authenticate your payment method. Please choose a different payment method and try again."
and the default_payment_method of that respective subscription becomes null
Hi there
Hi, is it possible to keep the default_payment_method what it was previous and let the customer try again
I meant, the similar behavior while creating the subscription
No that's not possible
What you would need to do is reconfirm the PaymentIntent and pass that PaymentMethod ID again
If you want to retry with the same PaymentMethod.
Then you would need to re-set the default if that succeeds.
I assume you are using payment_settings.save_default_payment_method here?
yes, while creating payment intent I am using
payment_settings: { save_default_payment_method: 'on_subscription' },
How can I reconfirm?
is it kind of setup payment intent?
To re-confirm you can call confirmCardPayment() and pass the client secret and PaymentMethod ID: https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-existing
I am curious why it is a card payment
What do you mean by that?