#fatematzuhora

1 messages · Page 1 of 1 (latest)

pure oreBOT
dawn cobalt
#

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

arctic vale
#

Hi there

dawn cobalt
#

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

arctic vale
#

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?

dawn cobalt
#

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?

arctic vale
dawn cobalt
#

I am curious why it is a card payment

arctic vale
#

What do you mean by that?

dawn cobalt
#

I am curious if I use this method will it make this card as the default_source of that customer

#

When I create a payment intent for a subscription and complete the payment it does not make that card / payment method the default_source of the customer

arctic vale
#

No that won't set a default for the Subscription or Customer at all

#

You would need to do that yourself after the successful payment if this is a retry after the initial failure