#jessp

1 messages · Page 1 of 1 (latest)

median obsidianBOT
maiden fox
#

Do you have a request ID for that error message?

neat granite
#

No, I'm just trying to plan for this use case.

maiden fox
#

Got it. Yes, you can generally try again later

neat granite
#

I saw a handful of card error codes that could be retried but I was unsure how to actually retry. Do I use the same Payment Intent or do I create a new one to retry with?

maiden fox
#

You can use the same PaymentIntent. You'll likely want to inspect the PaymentIntent's status to confirm that it is requires_payment_method then try to confirm it again

#

It's kind of hard to speak about the hypothetical scenario but you will either confirm with an existing PaymentMethod or prompt your customer to provide new payment details

neat granite
#

Interesting, so is it likely that when I see a response for customer with a card as payment method and I see an error_code of one of these decline_codes:
issuer_not_available
processing_error
reenter_transaction
try_again_later
It's likely I can just try to re-confirm as my "retry". Those were the only 4 according to this doc that discusses decline codes. https://stripe.com/docs/declines/codes

Understand what decline codes mean and how you can resolve them when a charge is declined.

#

I also realize I used the wrong terminology initially. I imagine the error_code would be card_declined.

#

I hear what you're saying though it is hard to determine until you actually experience these issues.

maiden fox
#

It's likely I can just try to re-confirm as my "retry".
what you do exactly will depend on your integration. you may get one of these decline codes when you're trying to charge a customer and they're not in your checkout flow (because you've saved their payment details to charge them at a later time)

#

You may want to retry once but, if you get the decline code again, kick off some logic to email the customer and have them share new payment details

#

If a customer is in your checkout flow and a payment is declined, you can decide what error message to present to the customer and also clear out the payment form. the customer may retry the payment with the same payment details or they might use a different card

neat granite
#

Our integration is quite different than they typically flow but this information is very helpful.

#

I think I might just go with the blanket "hey your card was declined" and then do a new Payment Intent.

#

Thank you so much for your help!!