pmpro_testing-sandbox-membership-checkoutHere are instructions for running a membership checkout test for each of our payment gateway integrations.

These instructions are to be used in place of a “live” test, where you actually pay yourself then refund your transaction.

You can run test on the sandbox first, but we also recommend testing the live environment before going live. Sometimes the sandbox environment isn’t 100% the same as the live environment, either due to configuration differences or because the environments are just subtly different.


Before you do this…

Note that setting your Payment Gateway to “Sandbox/Testing” mode will apply to all visitors that access your site, so I only suggest doing this in a few cases:

In addition to the gateway-specific tests below, you can also set your Paid Memberships Pro plugin to a generic “Testing Only” mode, that will allow you to run through a membership checkout simply by completing all required fields (you don’t need to enter a valid credit card number).


Stripe

Testing a Stripe checkout simply requires you to change some settings in your membership site’s WordPress admin and to use specific testing card numbers provided by Stripe.

  1. Navigate to Memberships > Payment Settings page.
  2. Set your “Payment Gateway” to “Stripe” and set the “Gateway Environment” to “Sandbox/Testing”.
  3. Then, enter the appropriate Stripe API keys for your “Test Secret Key” and “Test Publishable Key”.

After saving the settings, 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:

Number Card type
Visa 4242424242424242
MasterCard 5555555555554444
American Express 378282246310005
Discover 6011111111111117

PayPal Express, Standard or Website Payments Pro

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 the Memberships > Payment Settings page of your WordPress site.
  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

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 the Memberships > Payment Settings page of your WordPress site.
  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:

Number Card type
Visa 4111111111111111
MasterCard 5424000000000015
American Express 370000000000002
Discover 6011000000000012

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


Braintree

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 the Memberships > Payment Settings page of your WordPress site.
  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:

Number Card type
Visa 4242424242424242
MasterCard 5555555555554444
American Express 378282246310005
Discover 6011111111111117

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


2Checkout

Testing your 2Checkout integration requires you to set up a 2Checkout sandbox account and use 2Checkout’s provided sandbox test credit card information.

  1. Log in to your 2Checkout Sandbox account.
  2. Navigate to the Memberships > Payment Settings page of your WordPress site.
  3. Set your “Payment Gateway” to “2Checkout”.
  4. 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. 2Checkout’s Sandbox Test Data page has card numbers you can use for a test checkout. Use any valid future expiration date and either of the test cards below:

Number CVV
4000000000000002 123
4222222222222220 123

For more information, visit 2Checkout’s Hosted Checkout Testing documentation.


PayPal Payflow

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.


Author’s gravatar

I am unable to test my Paid Memberships Pro to Stripe payment because the expiration date keeps flipping back to a 01/2016 expiration date. Can any one advise? –Kim

Reply
Author’s gravatar

That’s odd. If you post to our member forums, we can get more information to try to help you out with this.

Reply
Author’s gravatar

Hi, i wanna know that it is not necessary to key in name and password on stripe via paid membership pro check out?
i dun see those options. thanks

Reply
Author’s gravatar

Hi, I’m doing some testing and realizing that there is no asterisk next to the Billing Address fields, I would like all users required to fill out every input box for the Billing address fields. Is there a way to require it?

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *