#Gesundheit-failed-payment-intents

1 messages · Page 1 of 1 (latest)

winter sparrow
cunning sapphire
#

hello again..

winter sparrow
#

Hello, what is your question?

cunning sapphire
#

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?

winter sparrow
#

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

cunning sapphire
#

ok, so i need to look at both fields

glossy flame
#

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

cunning sapphire
#

cool

glossy flame
cunning sapphire
#

yeah, saw these

cunning sapphire
#

do i need to supply both the payment intent id and the client secret?

glossy flame
#

supply it where?

#

When confirming in the client to handle the failure?

#

The client_secret should be sufficient (it actually has the payment intent id embedded in it, the "secret" part is appended to the id)