The PayPal Sandbox is a place where you can test your shopping cart and other PayPal integrations in a realistic way, except that no money changes hands. This means you can test your PayPal processes in the Sandbox and know they will behave the same on the when you go live. You need to follwo these steps
1. Login to the PayPal developer website
Login to the PayPal developer website: http://developer.paypal.com. Use your PayPal username and password to login and navigate to Applications → Sandbox accounts.
2. Create Your Sandbox test accounts
Now You need to create 2 test accounts –
1 for the merchant (representing your shop’s PayPal account) and
1 for a buyer (representing a customer/buyer).
Click the Create Account button to create an account.
3. Configure WooCommerce PayPal settings
Now login to your WooCommerce store. Navigate to your WordPress dashboard → WooCommerce → Settings → Payment Gateways → PayPal. Configure it like the following:
- Select checkbox: Enable PayPal standard
- Use the merchant test account email you created in Step 2 above for the PayPal & Receiver email
- Select checkbox: Enable PayPal sandbox, Save changes to save the settings.
Now you can do test purchase using the your buyer account on your store and make a purchase. When you click the Place Order button, you will be sent to test store on the PayPal Sandbox to make your payment.
You will see that it’s the test store because “test store” is appearing in the store name and the URL is www.sandbox.paypal.com. PayPal also add a Test Site to the top of the page. Login with the buyer test account and confirm the payment. Click the Return to merchant link to complete the order.
Congratulations! You have now made a test payment with PayPal – without using any real money.