Home › Forums › Stripe Payments Plugin › dedicated error page? › Reply To: dedicated error page?
June 6, 2018 at 10:56 pm
#1027
alexanderfoxc
Participant
Hi Jorg.
This can be achieved via a little trick. You can rename your page to “Checkout results”. Then, you can construct your own thank you and error messages using this guide https://s-plugins.com/customize-the-thank-page-message-of-stripe-payments-plugin/
So, very basic example. Here’s how the content of your page should look like:
[accept_stripe_payment_checkout]
Thank you for purchasing the following item:
{item_name}
You paid {item_price} {currency_code}
[/accept_stripe_payment_checkout]
[accept_stripe_payment_checkout_error]
There was an error with the credit card transaction. Error details below:
{error_msg}
[/accept_stripe_payment_checkout_error]
If there were no error during the checkout, the content of [accept_stripe_payment_checkout_error] won’t be displayed. And vise versa – if there is an error, only its content will be displayed, but content inside [accept_stripe_payment_checkout] won’t be.