This document explains how to set up and test PayPal Complete Payments Sandbox mode with MemberPress. Testing in sandbox mode lets you check the setup before accepting real payments.
PayPal Sandbox Overview
Connecting PayPal Complete Payments to MemberPress lets you accept payments from members worldwide. The setup supports both one-time and recurring payments for different membership models.
PayPal Sandbox is a testing area that copies the live payment system. However, it does not process real charges. As a result, you can test payment flows and settings using test card numbers instead of real payment details.
Testing with PayPal Sandbox before accepting live payments is a good idea. However, sandbox testing is optional. To skip testing and connect directly to Production, see How To Connect PayPal Complete Payments To MemberPress.
Conditions préalables
Before testing with PayPal Sandbox, make sure you have:
- MemberPress Growth or Scale plan activated on the site;
- A PayPal Developer account (free to create);
- A PayPal Complete Payments gateway created in MemberPress settings;
- At least one l'adhésion created for testing.
Creating Sandbox Accounts
PayPal Sandbox needs separate test accounts for the merchant (Business) and buyer (Personal). These sandbox accounts only exist in the test area.
Creating a Sandbox Business Account
- First, log in to the PayPal Developer Dashboard.
- Cliquez ensuite sur Testing Tools in the left menu. Then, click Sandbox Accounts.

- Cliquez sur le bouton Create account bouton.

- Sélectionner Entreprises as the account type.
- Sélectionner un Country/Region for the test merchant.
- Enfin, cliquez sur Créer to make the sandbox Business account.

Creating a Sandbox Personal Account
- Sur le site Sandbox Accounts page, click Create account.
- Sélectionner Personal as the account type.
- Sélectionner un Country/Region for the test buyer.
- Cliquez sur Créer to make the sandbox Personal account.

Viewing Sandbox Account Details
- Sur le site Sandbox Accounts page, find the account you want to view.
- Click the three-dot menu (…) next to the account.

- Cliquez sur View/Edit Account.
- Note the email address and system-made password.

Connecting MemberPress to PayPal Sandbox
With sandbox accounts created, you can now connect MemberPress to the PayPal Sandbox area. During the connection process, you will need to log in with your sandbox Business account. Use the email and password you found in the “Viewing Sandbox Account Details” section above.
You can log in to your sandbox Business account before starting the connection. Alternatively, PayPal will prompt you to log in during the connection process.
Connecting the Sandbox Account
- Open another browser tab and log in to your WordPress website.
- Aller à Tableau de bord > MemberPress > Paramètres > Paiements tabulation.
- Click on the PayPal Complete Payments gateway to expand its settings.
- Dans le cadre de la Bac à sable Cliquez sur la section Connect with PayPal bouton.

- If you are not already logged in, log in with your sandbox Business account details. Use the email and password from the account info.

- Grant permissions and complete the connection.
- After that, PayPal redirects back to the MemberPress settings page.
- Vérifier le Utiliser l'Environnement de test PayPal option to enable test payments.

- Cliquez sur Options de mise à jour à épargner.
Testing PayPal Payments
With Sandbox connected and enabled, you can now test the payment flow. You will use the Personal Sandbox account you created earlier for testing. During checkout, you can pay using a test credit card, bank account, or PayPal balance.
Managing Test Payment Methods
To manage test payment methods for your Personal Sandbox account:
- Aller à PayPal Developer Dashboard > Testing Tools > Sandbox Accounts.
- Find your Personal Sandbox account in the list.
- Click the three-dot menu (…) next to the account.
- Cliquez sur View/Edit account.
- Faites défiler vers le bas jusqu'à la rubrique “Sandbox account info” section.
- Manage your test payment methods:
- Credit Cards – Click Gérer to add or edit test credit cards;
- Banks – Click Gérer to add or edit test bank accounts;
- PayPal balance – Click the pencil icon to edit the test balance.

Processing a Test Payment
- First, open a new private or incognito window in your browser.
- Go to the registration page of any existing membership or a test membership.
- Fill in the registration form with test user details.
- Cliquez sur le bouton PayPal button to open the payment pop-up.

- Log in with the sandbox Personal account details.
- Complete the payment in the pop-up window.
Checking Test Transactions
After completing the test payment, verify the transaction in both MemberPress and PayPal.
In MemberPress:
- Aller à Tableau de bord > MemberPress > Transactions.
- Find the test transaction in the list.
- Check that the transaction status shows Compléter.

For recurring subscriptions, also check the subscription at Tableau de bord > MemberPress > Abonnements.
In PayPal Sandbox Dashboard:
- Aller à https://sandbox.paypal.com/.
- Log in using your Business Sandbox account credentials (email and password).
- Naviguez jusqu'à Activity > All Transactions.
- Find the test transaction in the list and verify the details match.
The connection is working correctly if transactions appear in both MemberPress and PayPal Sandbox.
Testing Other Payment Methods
By default, the PayPal button is enabled. You can enable additional payment options to test them in Sandbox mode.
Enabling Payment Options
- Aller à Tableau de bord > MemberPress > Paramètres > Paiements tabulation.
- Click on the PayPal Complete Payments gateway to expand its settings.
- Cliquez sur le bouton Personnaliser les modes de paiement button below the Production and Sandbox sections.

- In the pop-up, toggle the payment methods you want to test.

- Click outside the pop-up to close it.
- Cliquez sur Options de mise à jour pour enregistrer vos modifications.
Testing Card Payments
To test card payments, enable the Card ou Card Fields option under “Accept Card Payments” in the Customize Payment Methods pop-up.
PayPal provides test card numbers for Sandbox testing. For a full list of test cards, visit the PayPal Card Testing documentation.
Testing Other Checkout Options
PayPal supports additional checkout options like Venmo, Pay Later, Apple Pay, and Google Pay. Each option has specific requirements:
- Venmo – Create a US sandbox Personal account and use USD currency. Venmo hides for other regions;
- Pay Later – Requires a supported currency (USD, GBP, EUR, AUD) and a minimum purchase amount;
- Apple Pay – Requires setup in the merchant PayPal account;
- Google Pay – Only works with one-time payments. PayPal hides Google Pay for recurring memberships.
For detailed testing instructions, visit the PayPal Checkout documentation.
Switching to Production
Une fois les tests réussis, vous pouvez activer les paiements en direct :
- Naviguez jusqu'à Tableau de bord > MemberPress > Paramètres > Paiements tabulation.
- Dans le cadre de la Production section of your PayPal Complete Payments gateway, connect your live PayPal Business account (not the Sandbox Business account).
- Décochez la case Utiliser l'Environnement de test PayPal case à cocher.
- Cliquez sur Options de mise à jour pour enregistrer vos modifications.
Now, users can register for your memberships and pay through PayPal.
Troubleshooting Sandbox Issues
Blank screen when connecting – First, open the Sandbox Dashboard in another tab. Then, click Connect in MemberPress.
Cannot log in to sandbox – Use sandbox account details from the Developer Dashboard. Do not use regular PayPal login details.
Payment buttons not appearing – Check that Utiliser l'Environnement de test PayPal is checked. Also, verify that Sandbox shows Connected status.
Test card declined – Ensure you are using valid test card numbers from the PayPal Card Testing documentation. Also, use a future expiration date.
Venmo not appearing – Create a US sandbox Personal account and use USD currency.
Transaction not recorded – Check for pending transactions. Also, verify no firewall blocks PayPal. Review the WordPress debug log for errors.