#torec

1 messages · Page 1 of 1 (latest)

violet mothBOT
wild gorge
#

Hello 👋
Can you share the example event ID and the PaymentIntent ID you're working with?

vagrant palm
#

evt_3NaK0KGW2LU3Ezd50io4tqBU

pi_3NaK0KGW2LU3Ezd50urBpoAp

#

Thank you

wild gorge
#

This might be due to PaymentIntent getting cancelled right after it failed

vagrant palm
#

is there a way to get that message after?
or I need to add a webhook of payment_intent.payment_failed and save it at our database

wild gorge
#

Yeah you could save it when you receive the .payment_failed webhook

You might be able to retrieve the underlying charge that failed by listing charges for the PaymentIntent too
https://stripe.com/docs/api/charges/list

And look at the one that failed

vagrant palm
#

Thank you!!

#

yes, I found it in the Charge object

violet mothBOT