#jessp
1 messages · Page 1 of 1 (latest)
Do you have a request ID for that error message?
You can follow these steps to find the ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
No, I'm just trying to plan for this use case.
Got it. Yes, you can generally try again later
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?
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
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
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.
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