How To Test WooCommerce Payment By PayPal Sandbox

0
2,237 views

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.
How to Register a Paypal Sandbox Account
How to Register a Paypal Sandbox Account

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:

WooCommerce Paypal Sandbox
WooCommerce Paypal Sandbox

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)

 Create Sandbox test accounts
Create Sandbox test accounts

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:

Go to WordPress Dashboard >> WooCommerce >> Settings >> Payment Gateways >> Paypal
Go to WordPress Dashboard >> WooCommerce >> Settings >> Payment Gateways >> Paypal
  1. Select the checkbox: Enable Paypal standard and Enable Paypal sandbox.
  2. Enter in the Paypal email field the account that you want to use to receive cash (Shop Owner)
  3. 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.
Testing the payment by Paypal Sandbox
Testing the payment by Paypal Sandbox

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:
https://www.sandbox.paypal.com

 The path in the browser bar displays the URL: https://www.sandbox.paypal.com
The path in the browser bar displays the URL: https://www.sandbox.paypal.com

Conclusion

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.

Happy Testing!

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz