In the process of building an online shop with WooCommerce, online payment is a process that should be the most thoroughly tested before being put into actual operation. As it relates to money, so you can not get your real money to pay to have your main account. Therefore Paypal has evolved a tool for web developers called PayPal Sandbox. This is a self-contained, virtual testing environment that mimics the live PayPal production environment, and a fairly complete duplicate of the world’s largest online payment system at present: Paypal. In this article, I will guide you how to register a Paypal Sandbox account and integrate it with WooCommerce.
How to Register a Paypal Sandbox Account
- Step 1: Sign up for a PayPal account. First of all, you need to register a Paypal account to using PayPal Sandbox. You can create a PayPal account here.
- Step 2: Log in to PayPal Developer website
Using PayPal username and password that you had just created to log in, after logged in PayPal Developer, click the Dashboard menu. You will see the interface as shown below:
Next, click Sandbox >> Accounts on the right side.
- Step 3: Create Sandbox test accounts
Click on the “Create Account” button to create an account. We need to create at least 2 accounts – 1 account for receiving money (Shop Owner) and 1 account for paying (Customer)
Use WooCommmerce Paypal Sandbox Account
After creating a Paypal Sandbox account, now let’s return to WordPress Dashboard >> WooCommerce >> Settings >> Payment Gateways >> Paypal and set up as shown below:
- Select the checkbox: Enable Paypal standard and Enable Paypal sandbox.
- Enter in the Paypal email field the account that you want to use to receive cash (Shop Owner)
- Click ‘’Save change” and you have completed the setup for WooCommerce PayPal Sandbox.
Testing the payment by Paypal Sandbox
Now you can carry out the purchase test by your Paypal Sandbox account:
- Open another browser, access to your store and purchases as usual.
- After you click on the “Order” button, instead of moving you to Paypal system, it will move you to PayPal Sandbox to execute your payment.
You’re able to know you are accessing store test if you see the words “Test Store” displayed next to your name store. And the path in the browser bar displays the URL:
Remember that although it’s just a test, but the WooCommerce system still identifies the payment as usual. The system records the order, send a confirmation email and create invoices. For those reasons, you shouldn’t enable this feature on the site during actual running of your store.
And finally, after finishing the test, do not forget to turn off the Paypal Sandbox so you can get real money from Paypal account.