Home › Forums › Stripe Payments Plugin › dedicated error page? › Reply To: dedicated error page?
Thanks a lot, this makes sense. I have implemented this as follows:
[accept_stripe_payment_checkout]
[accept_stripe_payment_checkout_error]
There was an error with the payment transaction:
{error_msg}
Please try again.
[/accept_stripe_payment_checkout_error]
But when I try this with one of Stripe’s test numbers (4000000000000341), the [accept_stripe_payment_checkout] shortcode itself also returns a message, namely
“System was not able to complete the payment. Your card was declined.”
This now duplicates the error message that follows just after:
“There was an error with the payment transaction:
Your card was declined.
Please try again.”
Is there a way to silence the output from [accept_stripe_payment_checkout]?
Note that I cannot use the enclosing form “[accept_stripe_payment_checkout] … [/accept_stripe_payment_checkout]” because I am using the asp_stripe_payments_checkout_page_result filter hook to generate a custom message (which is only displayed when using the self-closing shortcode).
Thanks,
Jorg