#bruno-subscriptions

1 messages · Page 1 of 1 (latest)

slow tartan
#

if the payment is off-session and authentication is required then we detach the payment method yes. It's different from on-session.

#

1/ Overall yes.
2/ You should just be calling confirm again and passing the same payment method ID if you want to have the user retry

#

not sure if you've seen https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method (it's a little hidden) but it covers in general how to handle this case. If there's an error, we always detach the PaymentMethod so the PaymentIntent is in a fresh state for you to collect a new card and try again. You can either have UI that results in calling confirmCardPayment again with the same ID to try that one again, or you could mount an instance of Elements and then collect + confirm the PaymentIntent using that for a new card.