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 for all people that access your site. 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.

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