#diarra

1 messages · Page 1 of 1 (latest)

silk cobaltBOT
wanton maple
slender plover
#

if the test card is not valid how to get an error message on my app to tell me invalid card

#

the request ID for the API request is req_A2kAo7PSYVsVcE

wanton maple
#

This payment was using an invalid test that returns a card_declined error and that is what the API did. What is the question here?

#

The API returns the message, it's up to your app to figure out how to display that to the user

slender plover
#

Here, I would like to know how to manage the error message at the app level

wanton maple
#

That is up to you though. Stripe is doing exactly what we said we would. However, I can't offer guidance on how you build your app to react to the message

#

Wouldn't you just take the data from the API request and show the customer the error message?

slender plover
#

yes

wanton maple
#

Okay so why don't you just do that?

slender plover
#

I actually don't know how I could use this?

wanton maple
#

That is more of a basic application development question and unfortunately I cannot answer that for you