In this comprehensive guide, we explain how to conduct payment testing across the various payment gateways that integrate with Paid Memberships Pro. This resource is written for anyone that wants to test the membership checkout process without making an actual financial transaction.

Our goal is to ensure a seamless and secure payment testing experience to help you validate your setup before launch.

Banner Image for Testing Payment Gateway: How to Use Development or Sandbox Mode

Before Getting Started

When you perform payment gateway testing with PMPro, the gateway mode changes for all people that access your site. So, if you change your gateway mode from Live to Sandbox, your site will not be able to accept new checkouts from real members. For this reason, we only suggest payment testing in a few cases:

In addition to the gateway-specific tests below, you can also set your Paid Memberships Pro plugin to “Testing Only” mode. This mode allows you to run through a membership checkout simply by completing all required fields. “Testing Only” mode does not require you to enter a valid credit card number.

Stripe in Test Mode

To test a Stripe checkout, you need to change the settings in your membership site’s WordPress admin. You must also use specific testing card numbers provided by Stripe.

  1. Navigate to Memberships > Settings > Payment Gateway & SSL in the WordPress admin.
  2. Set your “Payment Gateway” to “Stripe” and set the “Gateway Environment” to “Sandbox/Testing”.
  3. Click the “Connect with Stripe” button and complete the authentication process in Stripe.
Set the Gateway Environment to Sandbox/Testing and Update Connect Credentials if Needed

After connecting to Stripe and being redirected back to your website, log out or browse to your membership levels page in incognito mode to test checkout for a paid level. Stripe’s testing documentation page has test card numbers you can use for checkout.

Use any valid future expiration date, any 3 digit CVV (or 4 digits for Amex) and the test card number below:

NumberCard type
Visa4242424242424242
MasterCard5555555555554444
American Express378282246310005
Discover6011111111111117

PayPal Express and PayPal Standard Sandbox

To test a PayPal checkout, you will need to set up a PayPal Developer account. If you already have a PayPal Developer account, log in to that account via the link above before running a test checkout.

  1. Log in to your PayPal Developer account.
  2. Create Sandbox Test Accounts per PayPal’s documentation.
  3. Navigate to Memberships > Settings > Payment Gateway & SSL in the WordPress admin.
  4. Set your “Payment Gateway” to the PayPal option you would like to use.
  5. Set the “Gateway Environment” to “Sandbox/Testing”.

After saving the settings, log out or browse to your membership levels page in incognito mode to test checkout for a paid level. You must use a Sandbox Test Account as set up in your PayPal Developer account in order to run the test.

For more information, visit PayPal’s Sandbox Testing Guide.

Authorize.net Sandbox

Using the Authorize.net Sandbox allows you to simulate the production environment where no actual card processing is performed. You will need to set up a sandbox account with Authorize.net and enter separate “sandbox” credentials for Authorize.net.

  1. Log in to your Authorize.net Sandbox account.
  2. Navigate to Memberships > Settings > Payment Gateway & SSL in the WordPress admin.
  3. Set your “Payment Gateway” to “Authorize.net”.
  4. Set the “Gateway Environment” to “Sandbox/Testing”.
  5. Enter your Authorize.net Sandbox account’s “Login Name” and “Transaction Key”.

After saving the settings, log out or browse to your membership levels page in incognito mode to test checkout for a paid level. Authorize.net’s testing documentation for page has test card numbers you can use for checkout. Use any valid future expiration date, any 3 digit CVV (or 4 digits for Amex) and the test card number below:

NumberCard type
Visa4111111111111111
MasterCard5424000000000015
American Express370000000000002
Discover6011000000000012

For more information, visit Authorize.net’s Testing Guide.

Braintree Sandbox

To test a membership checkout with Braintree as the gateway, you will need to set up a Braintree Sandbox account. This is an entirely separate environment from your production account, with unique login information, merchant ID and API keys.

  1. Log in to your Braintree Sandbox account.
  2. Navigate to Memberships > Settings > Payment Gateway & SSL in the WordPress admin.
  3. Set your “Payment Gateway” to “Braintree Payments”.
  4. Set the “Gateway Environment” to “Sandbox/Testing”.
  5. Enter your Braintree Sandbox account’s “Merchant ID”, “Public Key”, “Private Key”, and “Client-Side Encryption Key”.

After saving the settings, log out or browse to your membership levels page in incognito mode to test checkout for a paid level. Braintree’s testing documentation for the PHP SDK page has test card numbers you can use for checkout. Use any valid future expiration date, any 3 digit CVV (or 4 digits for Amex) and the test card number below:

NumberCard type
Visa4242424242424242
MasterCard5555555555554444
American Express378282246310005
Discover6011111111111117

For more information, visit Braintree’s Testing Guide for the PHP SDK integration.

PayPal Payflow Sandbox

The outstanding gateway in the mix here is our PayPal Payflow integration. In our experience, the only way to set up PayPal Payflow in a “test” mode is to create a totally separate/unique Payflow account and keep it in “trial” mode. PayPal offers this FAQ page on how do I test my integration with the Payflow Gateway? that would be the best starting point if you need to run test transactions for Payflow.

FAQs on Payment Gateway Testing

What is the purpose of using a development or sandbox mode for payment gateways?

The primary purpose is to allow testing of the membership checkout process without making a live financial transaction. Testing is generally done before launch to confirm that your payment gateway is set up properly.

Can I perform payment testing directly on my live site?

We don’t recommend payment testing in sandbox mode on a live site, since switching to a test gateway will affect the entire site’s ability to process real transactions. Instead, test on a development, staging site, or during off-hours. It’s always safe to test on your live site before launch. If you want to test on the live site, you can instead use a coupon code to make the cost of your membership $1 and process a real transaction.

What is the Testing Only mode in Paid Memberships Pro?

The Testing Only mode allows you to simulate a membership checkout by filling out all required fields without entering a valid credit card number. This mode does not connect to any external payment gateway to process checkouts, so while it does confirm whether there are on-site errors that prevent checkout, it will not give you 100% confirmation that live payments are working.

Wrapping Up: Testing Your Payment Gateway

Testing your payment gateways in development or sandbox mode ensures your membership checkout process is a smooth and secure experience.

In this guide, we covered the necessary steps to use Sandbox or Test mode for all of our integrated payment gateways. If you are using a third party payment gateway or WooCommerce for membership checkouts, your process will be a little bit different.

Remember, testing should ideally be conducted on a development/staging site or while your site is not receiving a lot of live traffic. The goal is to prevent any disruption to your live site’s transaction capabilities.

With proper setup and testing, you can confidently launch your membership platform knowing that your payment processes are solid.

Cover image from ebook 29 Nuggets of Wisdom Volume 1 - Sample Collection

Download the free ebook: Get 29 insights and ‘aha moments’ for new or veteran membership site business owners. Use these nuggets of wisdom to inspire or challenge you.

Was this article helpful?
YesNo