---
title: "Testing PayPal"
canonical_url: https://support.digitalphotogallery.com/articles/article/93f4664e-b2be-11eb-b0e6-2e38a617bcc0
short_url: https://dpg.support/astv
category: "Sales > Payment service providers > PayPal"
locale: en
updated_at: 2021-05-27T00:48:34Z
source: Digital Photo Gallery Support
---

# 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:

* [Sandbox accounts](https://developer.paypal.com/docs/api-basics/sandbox/accounts/)

### Setting up test account

Log in to the [PayPal Developer site](https://developer.paypal.com/). Go to the [Sandbox accounts](https://developer.paypal.com/developer/accounts/) page and create:

* a Personal sandbox account
* a Business sandbox account	

![](https://cache.media.digitalphotogallery.com/hyqelgcvfopo/images/6ff9f444-b82b-11eb-b30b-0e9a6ba445f3/pmazp_support.jpg?generated=20210518235032)
You can see pairs of Personal and Business sandbox accounts in the screenshot above. 

![](https://cache.media.digitalphotogallery.com/hyqelgcvfopo/images/74d28652-b82b-11eb-bab7-0e9a6ba445f3/nowgb_support.jpg?generated=20210518235040)
Click **View/edit account** to see the account details. 

![](https://cache.media.digitalphotogallery.com/hyqelgcvfopo/images/795a9f48-b82b-11eb-ad0d-facf1bc641fa/tnbli_support.jpg?generated=20210518235049)
Take note of the **Email ID** and **System Generated Password** for the accounts. This is the information you'll need to configure your test account in DPG.

### ### Connecting sandbox PayPal account

[▶ Video](https://cache.dpg.media/hyqelgcvfopo/videos/9597f0c4-b76e-11eb-bb20-facf1bc641fa/98bd6054-b76e-11eb-bb20-facf1bc641fa.mp4)

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.

![](https://cache.media.digitalphotogallery.com/hyqelgcvfopo/images/0ce907f4-b76e-11eb-8659-0e9a6ba445f3/matrr_support.jpg?generated=20210518011447)

You'll see test accounts are marked with a **test** flag in the tab.}

You are now able to select this account to use for testing of your shop website.

### Testing shop payments

![](https://cache.media.digitalphotogallery.com/hyqelgcvfopo/images/0efcd1f6-b76e-11eb-b62d-facf1bc641fa/utpha_support.jpg?generated=20210518011455)

From the website screen, go to the **Sales** tab. Select the test account from the PayPal account dropdown menu. Click **Save**. 

{video:01c61194-b824-11eb-8d81-facf1bc641fa

Now that the testing account has been selected, you can test your shop website. 

> 💡 **Tip:** It's a good idea to use the testing URL while testing your shop to avoid any cache issues.

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

![](https://cache.media.digitalphotogallery.com/hyqelgcvfopo/images/0689610a-b81e-11eb-9c11-facf1bc641fa/tmhcd_support.jpg?generated=20210518221432) 

Test orders appear in **Sales** > **Orders**. Click **Manage** to view each order in detail. 

![](https://cache.media.digitalphotogallery.com/hyqelgcvfopo/images/04827fc2-b81e-11eb-abc3-0e9a6ba445f3/cqpch_support.jpg?generated=20210518221424)

Test mode orders are labeled with the **test** flag.}

{detail:a5acbff4-be7f-11eb-8bd1-0e9a6ba445f3

### Switching to live PayPal account

![](https://cache.media.digitalphotogallery.com/hyqelgcvfopo/images/18975954-b82a-11eb-bc7a-0e9a6ba445f3/hzsyw_support.jpg?generated=20210518234055)

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.
