#domhacking
1 messages · Page 1 of 1 (latest)
There are couple of options, we typically recommend relying on webhook events
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-post-payment
but if you want to handle it client-side then you'd place the logic/function you're trying to run on the page you're being redirected to.
The other option is to set the redirect to if_required
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
In which case, users won't be redirected automatically. You can handle navigation on your part