PayPal Sandbox Mode
ProRequires Events Manager Pro. Compare plans
PayPal's sandbox is a copy of PayPal with pretend accounts and pretend money. Use it to check that bookings are approved, refunded and cancelled correctly before you take real payments. How you switch it on depends on which PayPal gateway you use.
You need a PayPal developer login at developer.paypal.com, which uses your normal PayPal account. In its sandbox area, create two test accounts: a business account to receive payments and a personal account to pay with. PayPal's sandbox accounts guide explains how.
PayPal Checkout and PayPal Advanced
These two gateways have test mode built in, with separate sandbox credentials.
-
In the PayPal Developer Dashboard, create a REST API app in Sandbox mode and copy its Client ID and Secret.
-
In Events then Payment Gateways, open Paypal Checkout or Paypal Advanced and paste them into the [Test] API Keys/Notifications tab. Save.
-
If the banner above the tabs does not already say Test Mode Enabled, click Enable Test Mode.
-
Book a priced event and pay by logging in to PayPal with your sandbox personal account.
Your live credentials stay on the [Live] API Keys/Notifications tab, so going live is one click on Enable Live Mode. To test on a site that is already selling, use Limited Test Mode on the test tab, described in Test mode.
PayPal (Payments Standard), the legacy gateway
This gateway has a single set of fields, so testing means putting sandbox values in them for a while.
-
In Events then Payment Gateways, open PayPal (Payments Standard).
-
On the PayPal Options tab, replace PayPal Email with the email address of your sandbox business account.
-
On the API Keys/Notifications tab, set Gateway Mode to Test Mode (Sandbox). If you use the API fields, replace them with the sandbox business account's API username, password and signature. Save.
-
Book a priced event. You are sent to PayPal's sandbox site, where you pay with the sandbox personal account.
-
When you have finished, put your real PayPal Email and API values back and set Gateway Mode to Live Site.
While the sandbox values are in place, real customers who book are sent to the sandbox and can't pay. Test at a quiet time, or on a staging copy of your site.
What to check
- A paid booking becomes Approved and has a Completed transaction in Events then Bookings.
- Refunding the sandbox payment from the sandbox business account cancels the booking.
- Closing the PayPal window without paying leaves no approved booking behind.
Sandbox bookings are real bookings on your site and take real spaces. Delete them when you are done.