#jarrett
1 messages · Page 1 of 1 (latest)
Are you expecting it to contain something?
Also, where are you looking at last_payment_error.code?
the payment intent has a field called last_payment_error
and it has a field called code
which is an empty string
i have code that references it in the past which I assume is because it sometimes is a value
i'm surprised it is an empty string for certain
Hmmm, that's odd
I'm looking at it now internally and I can see that it obviously has had a payment error. I wonder if it's set to null if a payment succeeds
Let me dig a bit more and get back to you
Ahhh, yup. It was right there in front of me the whole time
The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
https://stripe.com/docs/api/payment_intents/object?lang=curl#payment_intent_object-last_payment_error