#simon-vu_code
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/1451459511205499072
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
That's decline codes. Errors are different
Thanks @novel dust for the quick reply
Very appreciate it and sorry the late reply
My mistake I didn't include the part where I was testing a stripe test card that return error status stolen_card, when I check the message in the response it didn't match with the one in declines code document
This is the response I receive from stripe API:
{
code: "card_declined"
decline_code: "lost_card"
doc_url: "https://stripe.com/docs/error-codes/card-declined"
message: "Your card was declined. Please contact your card issuer."
...
}
Here the message that is listed in the stripe docs:
- lost_card: "The payment was declined because the card is reported lost."
The message on the stripe docs is the description of the error code isn't it.
I would like to ask if there is a document that list all the response error code with the error message when using stripe.confirmCardSetup
Looks like you are referring to declines code, let's not mix them with errors code
Which card have you been using?
I have been using this card 4000 0000 0000 9979 for testing
That should respond stolen_card
do you have a request id which it returned you lost_card?
My mistake I was using this one 4000 0000 0000 9987 when it return lost_card
Very sorry about that
Np, then yes that is the lost_card decline
Both of them should be included in https://docs.stripe.com/declines/codes#card-decline-codes
Yes but I can't seem to find the same error message response from the API
or may be the reponse message isn't listed in the https://docs.stripe.com/declines/codes#card-decline-codes
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Nice, thanks @autumn arch .
Does response error message from error code lost_card or other error code in another document somewhere
Because I can't seem to find it in https://docs.stripe.com/declines/codes#card-decline-codes
It's already there
But it isn't the same one as the response from the API
This is the response I receive from stripe API:
{
code: "card_declined"
decline_code: "lost_card"
doc_url: "https://stripe.com/docs/error-codes/card-declined"
message: "Your card was declined. Please contact your card issuer."
...
}
What is the difference sorry
I receving this for lost_card case:
- Received message: "Your card was declined. Please contact your card issuer."
- Docs message: "The payment was declined because the card is reported lost."
I can't seem to find the respond message anywhere in the docs
Ah no the "description" isn't the same with the "message" in the API response
You need to refer to the decline code and then you can map it manually to the description in the guide
is there a document that have all the error "message" that the API response
No there is no public reference for that
so manually mapping it is the only option left then
Yes
Okay then, thanks for the support
Really appreciate it