• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Replies /

Reply To: dedicated error page?

· ·

Home › Forums › Stripe Payments Plugin › dedicated error page? › Reply To: dedicated error page?

June 7, 2018 at 5:07 pm #1029
Admin
Keymaster

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

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.