#Gesundheit-failed-payment-intents
1 messages · Page 1 of 1 (latest)
hello again..
Hello, what is your question?
so, uh
what we want to achieve is identify a reason why a payment for a subscription fails
like, the card requires further action, or is declined by the bank, and all other reasons.
Where would I go for this info? Or rather, is PaymentIntent.Last_Payment_Error the correct property to ask?
status would be what you look at to see if the card requires further action (it will be requires_action)
Otherwise, yes last_payment_error will be where you want to go for more detailed info on why the last charge attempt did not succeed
ok, so i need to look at both fields
If there was a decline code and that's what you want to see, then yes the last payment error is where you'd find it
cool
Which maps to these values here: https://stripe.com/docs/declines/codes
yeah, saw these
do i need to supply both the payment intent id and the client secret?