#hendr1x

1 messages · Page 1 of 1 (latest)

fleet idolBOT
bleak comet
#

Hi 👋 is the status you're seeing in the url always matching the status of the associated Payment Intent in your testing?

red lily
#

I have never tested that

#

I need you to tell me

bleak comet
#

I don't know off hand

red lily
#

So what process is standard after you complete confirmPayment()?

bleak comet
#

To do what?

red lily
#

I have to make sure that payment was successful then update my database with the order

bleak comet
#

If you need certainty, then you should retrieve the intent and check it's status, but you shouldn't be relying on your return_url to do that kind of processing. Doing so puts your business logic at risk in situations where customers promptly close their browsers after completing payment or unexpectedly lose network connectivity.

Using a webhook endpoint is the more reliable approach that we recommend for post-payment processing.
https://stripe.com/docs/webhooks

Listen for events on your Stripe account so your integration can automatically trigger reactions.

red lily
#

ok. I guess I have more reading to do. Thank you