#zorzinek_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1212755356011204609
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
I want to know on frontend side in my react app when user successfully complete payment form and Stripe started processing payment
you need to listen to webhook events
and basically rely on the success_url to show your customer that the payment is either fulfilled or still processing in the case of an async payment method
so I assume I need to listen for payment_intent.processing event if I want to know as soon as possible that payment has started processing? Is it also raised on declined payment?
that's not a good strategy
if it's a synchronous payment (card, etc.)
you will only get redirected to the success_url if the payment got through
I'm already listening for checkoutsession.completed and expired and thats ok for final status, but I want to know when stripe started processing payment, just to be sure that user will not get "session expired" message in the middle of processing
and i mean "session expired" from our system, not from Stripe
I'm not sure there's a way of doing this
sure
I just wanted to be sure if its impossible or if there is some option to achive this
๐ stepping in
No it isn't possible to hook into the embedded form for event listeners.
If you want that sort of functionality then you should build out a custom flow here
That's what I thought so. Well, gonna try some other workarounds ๐ Thanks!