Setting Payment Success and Failure Pages - WP Simple Pay Documentation
  1. Home
  2. Functionality
  3. General
  4. Setting Payment Success and Failure Pages
  1. Home
  2. Functionality
  3. Setting Payment Success and Failure Pages

Setting Payment Success and Failure Pages

When WP Simple Pay Pro is installed and activated, two pages will be generated: a Payment Success Page and a Payment Failure Page.

By default, after payments made through WP Simple Pay Pro succeed (or fail), the payer will be redirected to the appropriate page.

These pages can be edited like any other WordPress page, but you can also select existing pages for either option in your WordPress admin under Simple Pay Pro → Settings → General.

You can also change the payment success page at the form settings level. Visit Simple Pay Pro → Payment Forms → (Your Form) → Payment Options.

There are 3 options to choose from here. Global Setting will use the setting you have saved in the main settings. Specific Page will give you a dropdown to select the specific page on your site you want to redirect to. Finally, Redirect URL will allow you to type in a custom URL into a text field to use as the redirect.

Make sure the [simpay_payment_receipt] shortcode resides on the Payment Success Page. To customize this shortcode output further, see how to configure the payment confirmation display.

Also, make sure the payment confirmation page is excluded from any site caching enabled by your web host.

The [simpay_error] shortcode is added to the Payment Failure Page by default when WP Simple Pay is installed. This is optional and only displays error information if you’re logged in as an administrator.

NOTE: For Stripe Checkout pages, there is also a Payment Canceled Page to be used when a customer fails to complete a checkout session, or otherwise navigates away from a Stripe Checkout page

If you see an error returning from Stripe Checkout you may have ModSecurity rules in place that are blocking the request.

Updated on November 20, 2020

Was this article helpful?

Related Articles