#andrea-skuola - failure payment
1 messages · Page 1 of 1 (latest)
Hello
you can listen to the event payment_intent.payment_failed
https://stripe.com/docs/api/events/types#event_types-payment_intent.payment_failed
You will receive a PaymentIntent, where you can find the reason:
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-last_payment_error
ok, while i was waiting i found the error codes that last_payment_error.code field can contain. For insufficient money on the card or expired card can you confirm that they are balance_insufficient and expired_card?