#simon-vu_code

1 messages ¡ Page 1 of 1 (latest)

valid creekBOT
#

👋 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.

novel dust
#

That's decline codes. Errors are different

tidal grove
#

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

Review the list of error codes Stripe might return in an API response so you can handle responding to them in your integration.

novel dust
#

Looks like you are referring to declines code, let's not mix them with errors code

#

Which card have you been using?

tidal grove
#

I have been using this card 4000 0000 0000 9979 for testing

novel dust
#

That should respond stolen_card

#

do you have a request id which it returned you lost_card?

tidal grove
#

My mistake I was using this one 4000 0000 0000 9987 when it return lost_card
Very sorry about that

novel dust
#

Np, then yes that is the lost_card decline

tidal grove
valid creekBOT
autumn arch
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

tidal grove
autumn arch
#

It's already there

tidal grove
#

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."
...
}

autumn arch
#

What is the difference sorry

tidal grove
#

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

autumn arch
#

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

tidal grove
#

is there a document that have all the error "message" that the API response

autumn arch
#

No there is no public reference for that

tidal grove
#

so manually mapping it is the only option left then

autumn arch
#

Yes

tidal grove
#

Okay then, thanks for the support
Really appreciate it