#zorzinek_code

1 messages ยท Page 1 of 1 (latest)

frigid creekBOT
#

๐Ÿ‘‹ 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!

tall galleonBOT
muted yacht
#

๐Ÿ‘‹ happy to help

#

what exactly are you trying to achieve here?

warm nimbus
#

I want to know on frontend side in my react app when user successfully complete payment form and Stripe started processing payment

muted yacht
#

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

warm nimbus
#

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?

muted yacht
#

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

warm nimbus
#

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

tall galleonBOT
muted yacht
#

I'm not sure there's a way of doing this

warm nimbus
#

sure

#

I just wanted to be sure if its impossible or if there is some option to achive this

willow goblet
#

๐Ÿ‘‹ 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

warm nimbus
#

That's what I thought so. Well, gonna try some other workarounds ๐Ÿ™‚ Thanks!