#Arctic
1 messages · Page 1 of 1 (latest)
hi! well it would depend a bit, those are generally two separate parts.
The webhook is for updating your backend databases and so on.
The payment success redirect is generally handled for you in the Stripe frontend integration(the success_url you pass to Checkout or the return_url you pass to confirmPayment in the PaymentElement, those components redirect the customer to those pages when the payment completes).
ohh isee, im using confirmPayment
so i should update my database with the events from the webhooks serverside, then fetch that info clientside from the return_url page i suppose?
yes, that's generally the approach to take, the success page can make some call to your backend to check on the status of the order, which would involve checking your database to see if it's been updated from the webhook processing side of things
nice, thanks very much
love the support here at stripe discord, very fast clear answers and high competence:) have a good day