#diarra
1 messages · Page 1 of 1 (latest)
Hi 👋
Can you share the request ID for the API request that is not doing what you expect?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
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
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
Here, I would like to know how to manage the error message at the app level
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?
yes
Okay so why don't you just do that?
I actually don't know how I could use this?
That is more of a basic application development question and unfortunately I cannot answer that for you