#ashishchicmic
1 messages · Page 1 of 1 (latest)
Can you provide the event id? evt_xxx
evt_1NfcfDKKfDNzQrclGEhClR9n
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
can we handle it on stripe? or we have to handle it on our backend?
Handle what? The event invoice.payment_failed?
In this case you can just ignore it
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
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
It worked. Thank you for your invaluable assistance, your expertise made all the difference!