#ashishchicmic

1 messages · Page 1 of 1 (latest)

haughty tundraBOT
tawdry trellis
#

Can you provide the event id? evt_xxx

vocal canyon
#

evt_1NfcfDKKfDNzQrclGEhClR9n

tawdry trellis
#

Hi, so it's expected because at first this Invoice requires 3D Secure to complete its payment, so it wasn't able to success "right away", which is where you received invoice.payment_failed

#

After few more seconds when 3DS is confirmed, you see the PaymentIntent succeed hence this Invoice also generated invoice.paid

vocal canyon
#

can we handle it on stripe? or we have to handle it on our backend?

tawdry trellis
#

Handle what? The event invoice.payment_failed?

#

In this case you can just ignore it

vocal canyon
#

okay

#

But how we'll know if the payment is actually failed?

#

or how i'll recoganize in which case I have to ignor this event

tawdry trellis
#

Yeah so when you receive the event invoice.payment_failed, you can try to retrieve its PaymentIntent, here is pi_3Nfcf4KKfDNzQrcl1KIePsCi to see if its status is requires_action.

#

If it's requires_action then it is awaits an action from frontend, then you can ignore it

vocal canyon
#

It worked. Thank you for your invaluable assistance, your expertise made all the difference!