#nehkochann
1 messages · Page 1 of 1 (latest)
What type of integration are you using? Checkout Session, Payment Element... etc?
to be honest it was implemented 5 years ago, i'm not quite sure what we're using
Do you have the Payment Intent ID (pi_xxx), or Charge ID (ch_xxx) that I can take a look how you integrate with Stripe? Can you also share the screenshot of the Stripe page that you're referring to?
this is the stripe page
we use payment intent ids, do you want a specific id?
we basically want to be able to display a custom version of the text in red on the payment failure page on our website
This screenshot is sufficient for me to understand which integration you're using. You use Checkout Session for your integration. When the payment fails on Checkout Session, customer will remain in this page until completes, then redirect to your website.
When the payment failed on Checkout Session, a payment_intent.failed event will be sent to your Webhook which you can retrieve the error message from last_payment_error parameter.
what you mentioned is the approach we've used so far
here, for most failures, there's a red error message that is displayed on the screen and i'm not able to redirect the user to the custom payment failed page I mentioned.
Is it possible to redirect a user like that? If so, are there any test cards that I can use?
This is expected that the customer won't be able to redirect to your custom payment failed page in case of payment failure. Customer will remain in Checkout Session page until the payment is made successfully.
got it, are the error messages customizable?
Error message is not customisable
got it, my queries have been resolved, thank you so much for your help! 😄