#nepotist_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1466768486385586198
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Hi there! Let me take a look
It looks like it was automatically cancelled due to too many failed attempts to pay it using different payment methods
Huh. I didn't know that was a thing!
It makes sense though, they tried to pay a lot of time.
๐
Yeah, it's a pretty rare thing. But to guard against people testing lots of different credit cards, for example, there are some limits in place
Okay, so what would be the best way to automate against this? The error is not descriptive, so if we get another code 500 error then check the status of the payment_intent. If it is 'cancelled' then.... I don't see an 'invoice' property in the payment_intent docs.
How do I associate the payment to the Invoice=
Yeah, an HTTP 500 error should never happen, so that's something we need to fix. But I see that you then retried and got the HTTP 400 response, as the Payment Intent had been cancelled
Yeah, we have a backstop that retries the call in case the first one fails.
If you're using an older API version, you should be seeing the invoice on the Payment Intent.
But if you're using the Dashboard or newer API versions, that's no longer included
Ah ha, I am looking at newer docs. We are using an ancient API version. All the way back to the good ol' days of 2020.
Okay, then i have a plan.
Thanks for the info!
Yup, it's still there in the older docs: https://docs.stripe.com/api/payment_intents/object?api-version=2025-02-24.acacia#payment_intent_object-invoice
You're welcome!