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.
Pré-requisitos
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 filiação 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.
- Em seguida, clique em Testing Tools in the left menu. Then, click Sandbox Accounts.

- Clique no botão Create account botão.

- Selecione Negócios as the account type.
- Selecione um Country/Region for the test merchant.
- Por fim, clique em Criar to make the sandbox Business account.

Creating a Sandbox Personal Account
- No Sandbox Accounts page, click Create account.
- Selecione Personal as the account type.
- Selecione um Country/Region for the test buyer.
- Clique em Criar to make the sandbox Personal account.

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

- Clique em 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.
- Ir para Painel de controle > MemberPress > Configurações > Pagamentos guia.
- Click on the PayPal Complete Payments gateway to expand its settings.
- Sob o Caixa de areia clique na seção Connect with PayPal botão.

- 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.
- Verifique o Usar o PayPal Sandbox option to enable test payments.

- Clique em Opções de atualização para salvar.
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:
- Ir para PayPal Developer Dashboard > Testing Tools > Sandbox Accounts.
- Find your Personal Sandbox account in the list.
- Click the three-dot menu (…) next to the account.
- Clique em View/Edit account.
- Role para baixo até a seção “Sandbox account info” seção.
- Manage your test payment methods:
- Credit Cards – Click Gerenciar to add or edit test credit cards;
- Banks – Click Gerenciar 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.
- Clique no botão 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:
- Ir para Painel de controle > MemberPress > Transações.
- Find the test transaction in the list.
- Check that the transaction status shows Completo.

For recurring subscriptions, also check the subscription at Painel de controle > MemberPress > Assinaturas.
In PayPal Sandbox Dashboard:
- Ir para https://sandbox.paypal.com/.
- Log in using your Business Sandbox account credentials (email and password).
- Navegue até 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
- Ir para Painel de controle > MemberPress > Configurações > Pagamentos guia.
- Click on the PayPal Complete Payments gateway to expand its settings.
- Clique no botão Personalizar métodos de pagamento 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.
- Clique em Opções de atualização para salvar suas alterações.
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
Após o teste bem-sucedido, você pode ativar os pagamentos em tempo real:
- Navegue até Painel de controle > MemberPress > Configurações > Pagamentos guia.
- Sob o Produção section of your PayPal Complete Payments gateway, connect your live PayPal Business account (not the Sandbox Business account).
- Desmarque a opção Usar o PayPal Sandbox caixa de seleção.
- Clique em Opções de atualização para salvar suas alterações.
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 Usar o PayPal Sandbox 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.