Skip to content
PayPal Sandbox: how to create a test account (guide)
E-commerce · Updated on · 8 min read

PayPal Sandbox: how to create a test account (guide)

The PayPal Sandbox is a test environment that mirrors how PayPal works without moving any real money. In this guide we’ll see what it is, how to create Personal and Business test accounts, how to get your Client ID and Secret, and how to run a test payment before going live.

What is the PayPal Sandbox and what is it for

The Sandbox is a separate copy of the PayPal platform, with fake accounts and balances. It lets you check that the whole purchase flow (checkout, payment, refunds, notifications) works correctly without spending real money. Once you swap the test credentials for the production ones, you know the procedures have already been tested.

It is the tool you use when integrating PayPal into an online store, for example on Magento 2 or WooCommerce.

What you need to get started

All you need is a regular PayPal account. If you don’t have one, you can create one here. With the same credentials you then sign in to the PayPal Developer Dashboard, where you manage everything related to the Sandbox.

PayPal developer dashboard showing REST apps and sandbox accounts
Developer tools dashboard

How to create a PayPal Sandbox account step by step

  1. Sign in to the Developer Dashboard with your PayPal account.
  2. Open the Sandbox accounts section (developer.paypal.com/dashboard/accounts): here you’ll find the existing test accounts and you can create new ones.
  3. Click Create account, choose the type (Personal or Business) and the country, then set the account’s email and password.
  4. To see the credentials of a sandbox account, open the account menu and view its details: you’ll find the email and password used to sign in.
List of PayPal sandbox accounts in the Developer Dashboard
PayPal Sandbox accounts

Personal or Business account: which one to choose

  • Personal: the end customer who buys. Use it to simulate a shopper paying.
  • Business: the merchant selling on the store. This is the account that receives payments and that you’ll connect to your site.

A complete test needs both: the Business account connected to the site and the Personal account used to make the purchase.

How to create an app and get your Client ID and Secret

To connect the Sandbox to your site you need API credentials. It’s best to create one app per project, so your staging environment stays properly separated.

  1. Go to Apps & Credentials and select Sandbox mode.
  2. Click Create App, enter the app name and choose the Business test account to link to it.
  3. Copy the Client ID and the Secret: these are the values to enter in your store’s PayPal settings.
Creating a new app in the PayPal Developer Dashboard
Creating a new app
Client ID and Secret of a PayPal sandbox app
Credentials to enter in the project

How to test a payment in the Sandbox

Enter the sandbox credentials in your site, start a purchase and, at the payment step, sign in with the test Personal account. You can then check the result of the transaction by signing in with the Business account at sandbox.paypal.com.

The Sandbox area mirrors the real one: settings, transactions and refunds are only visible there, using the test credentials.

Common problems

  • Login doesn’t work: sandbox accounts only work on sandbox.paypal.com and in the test-mode checkout, never with your real PayPal credentials.
  • Mixed-up credentials: the Sandbox Client ID and Secret are different from the live ones. If your site is in test mode, make sure you’re using the sandbox ones.
  • Missing notification emails: sandbox account emails don’t reach real inboxes, you read them from the Sandbox.
  • Payment declined: check that the Personal account has a test balance or payment method, and that country and currency match the Business account.

Frequently asked questions

Is the PayPal Sandbox free?

Yes. It has no cost and never charges real money: you only need a PayPal account to access the Developer Dashboard.

Can I use my real PayPal account in the Sandbox?

No. The Sandbox requires dedicated test accounts, created from the Developer Dashboard.

How do I move from the Sandbox to production?

Create the credentials in Live mode and replace the Client ID and Secret in your site, turning off test mode.

If you’re setting up an online store, also read the guide on how to set up PayPal in Magento 2.

You might also like