#glougou
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
You can check the action.failure_code and action.failure_message in the terminal.reader.action_failed webhook
You'll have the decline code:
https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=server-driven#payment-failures
With an example :
failure_code : "card_declined",
failure_message : "Your card was declined."
I have no more information about the failure.
However when I go into the logs of paiement history (on https://dashboard.stripe.com) , I can see additional information :
"decline_code": "invalid_pin"
Thats the info I would like to have.
Thanks for these details! What you can do is when you got the webhook event, you can make API call to fetch the PaymentIntent details and read the decline code:
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-last_payment_error-decline_code
Ok, I'll try that. You might want to consider adding the information inside the webhook as customers want to know the exact reason when payment fails (it will save us an additional request).
Thanks again for the support 😉