#buddhaprovides-intent-status
1 messages ยท Page 1 of 1 (latest)
Hello ๐
AFAIK If the Payment Intent is still processing, they'd be redirected to the success URL
I see, and if the charge to the card fails, then they are automatically redirected to failed URL or is the user allowed to retry in the open checkout window before being sent back to my store?
I believe they'd be redirected immediately once the payment fails. You can try this out in test mode
Hmm not a great experience because even if it was a small mistake in the card details they'd be thrown out of checkout instead of given another chance!
If its a typo and the error is invalid card number or something, I do think checkout would let the customers correct it
Yes it does - I just tested it
So in what cases would checkout send the customer to the failure URL?
when you say failure URL you mean cancelUrl right?
Let me correct myself here
I believe they'd be redirected immediately once the payment fails.
For cards, I don't think that's true. Checkout supports different types of payment methods.
As per this (https://stripe.com/docs/payments/intents#intent-statuses) there are 4 things that can happen:
- Processing
- Success
- Failure
- Cancelled
Yes
There are various payment methods such as ACH etc that require more time to process the payment. In those cases, the payment intent doesn't fail immediately but after some time. So at that point, your customers would be redirected to the success URL that you set.
With card payments, at most times you'd know if the payment fails immediately so checkout can handle it and allow customers to provide a different card
I see
How will I know if a payment that is "processing" has finished?
Would I have to keep polling stripe for all payments marked as processing until they are changed to success?
You can indeed do that or you can configure a webhook endpoint server side which will receive an event once the PaymentIntent is done processing
https://stripe.com/docs/webhooks
NP! ๐ Glad I could help