#nepotist_error

1 messages ยท Page 1 of 1 (latest)

cerulean bayBOT
#

๐Ÿ‘‹ 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.

worldly nacelle
#

๐Ÿ‘‹ 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

sinful oxide
#

Huh. I didn't know that was a thing!

#

It makes sense though, they tried to pay a lot of time.

#

๐Ÿ˜„

worldly nacelle
#

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

sinful oxide
#

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=

worldly nacelle
#

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

sinful oxide
#

Yeah, we have a backstop that retries the call in case the first one fails.

worldly nacelle
#

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

sinful oxide
#

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!

worldly nacelle
#

You're welcome!