#buddhaprovides-intent-status

1 messages ยท Page 1 of 1 (latest)

junior oar
#

Hello ๐Ÿ‘‹

#

AFAIK If the Payment Intent is still processing, they'd be redirected to the success URL

meager fog
#

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?

junior oar
#

I believe they'd be redirected immediately once the payment fails. You can try this out in test mode

meager fog
#

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!

junior oar
#

If its a typo and the error is invalid card number or something, I do think checkout would let the customers correct it

meager fog
#

Yes it does - I just tested it

#

So in what cases would checkout send the customer to the failure URL?

junior oar
#

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.

meager fog
junior oar
#

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

meager fog
#

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?

junior oar
#

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

meager fog
#

I see

#

Thanks so much will look into this

junior oar
#

NP! ๐Ÿ™‚ Glad I could help