PayPal - Testing PayPal
PayPal allows you to create sandbox accounts for both the customer (this is called a Personal account) and the merchant or seller (this is called a Business account). You can use these accounts to test the payment process without incurring real charges.
For test purposes the Business account is added to your website in place of the account you will use on the live site, while the Personal account is used to pay for items as a customer would.
You can learn more about setting up Sandbox accounts from PayPal support:
Setting up test account
- a Personal sandbox account
- a Business sandbox account
### Connecting sandbox PayPal account
Go to Services from the main menu or Dashboard. Click on the PayPal > Add tab. Click the Add button.
Enter your Business sandbox account email address.
You are now able to select this account to use for testing of your shop website.
Testing shop payments
From the website screen, go to the Sales tab. Select the test account from the PayPal account dropdown menu. Click Save.
Now that the testing account has been selected, you can test your shop website.
Visit your website. Add some items to your cart and continue to the checkout.
Complete the information at checkout, selecting PayPal as the payment method if prompted to choose. Review your order and Proceed to payment.
You will now see the PayPal payment page. Use the Personal sandbox account email address and password to complete the transaction.
Once payment is completed, you'll be directed back to your shop and a "Thank you for your order" page will display. You will also receive an order confirmation email.
Completed test orders
Test orders appear in Sales > Orders. Click Manage to view each order in detail.
Switching to live PayPal account
Once you've completed testing, make sure that you replace the testing account with one in live mode before you launch your shop. Go to Sales > Options from the website screen and choose your live account.