### [Testing PayPal Commerce Payments](https://wpforms.com/docs/testing-payments-with-the-paypal-commerce-addon/)

**Published:** November 23, 2023
**Author:** David Ozokoye

**Excerpt:** Learn how to test your PayPal Commerce payments using a PayPal Business sandbox account.

**Content:**

PayPal Commerce is a Pro Feature

 Unlock PayPal Commerce and other powerful features to grow your business.

 [ Get WPForms Pro ](https://wpforms.com/pricing/) 

Would you like to test PayPal Commerce payments before accepting real payments on your site? Creating a PayPal Business sandbox account allows you to test your forms and ensure the payment process functions correctly.

This tutorial will show you how to set up a sandbox account to test PayPal Commerce payments with your forms.

- [Setting Up a Sandbox Account in PayPal](#paypal-sandbox-account)
- [Enabling PayPal Commerce Test Mode](#enabling-test-mode)
- [Creating a Form to Test PayPal Commerce Payments](#creating-payment-form)
- [Enabling PayPal Commerce Payments in Your Form](#enabling-paypal-payments)
- [Publishing and Testing Your Form](#publishing-and-testing)
- [Viewing Test Transactions in Your PayPal Sandbox Account](#viewing-test-transactions)

![Testing PayPal Commerce Payments](https://wpforms.com/wp-content/uploads/2023/06/testing-paypal-commerce-payment.gif "Testing PayPal Commerce Payments")**Requirements**: To use the PayPal Commerce addon for WPForms you’ll need

- WPForms version 1.7.5.5 or higher
- A [Pro license level or higher](https://wpforms.com/pricing/)
- A [PayPal Business account](https://www.paypal.com/us/business)
- 

---

Before getting started, you’ll first need to make sure WPForms is [installed and activated](https://wpforms.com/docs/install-wpforms-plugin/) on your WordPress site and that you’ve [verified your license](https://wpforms.com/docs/verify-wpforms-license/). Then, be sure to [activate and install the PayPal Commerce addon](https://wpforms.com/docs/install-activate-wpforms-addons/ "How to Install and Activate WPForms Addons").

**Note:** This guide covers how to test payments with the PayPal Commerce addon. If you’re looking to test payments with the PayPal Standard addon instead, please see our tutorial on [testing PayPal Standard payments](https://wpforms.com/docs/how-to-test-paypal-payments-before-accepting-real-payments/).

## Setting Up a Sandbox Account in PayPal

To get started, you’ll need to [create a PayPal Business account](https://www.paypal.com/bizsignup/#/singlePageSignup "PayPal Business Account Sign Up") if you don’t have one already.

**Note:** PayPal Commerce requires a PayPal Business account and won’t work with a PayPal Personal account. To learn how to open the correct account, check out [PayPal’s guide to opening a Business account](https://www.paypal.com/us/brc/article/how-to-open-a-paypal-business-account).

Once you have access to a PayPal Business account, head over to the [PayPal Developer site](https://developer.paypal.com/ "PayPal Developer Site") and log in with your PayPal Business account credentials.

After logging in, click the **Testing Tools** dropdown menu and select **Sandbox Accounts**.

![Account-area-in-PayPal-Sandbox](https://wpforms.com/wp-content/uploads/2023/05/select-sandbox-account.png "Account Area in PayPal Sandbox")On the next page, you’ll see that PayPal has created both a Personal and a Business sandbox account for you by default.

![PayPal-Sandbox-account](https://wpforms.com/wp-content/uploads/2023/05/paypal-sandbox-accounts.png "PayPal Sandbox Accounts")From here, you’ll need to set up a password for your Business Sandbox account, allowing you to log in with this account later to make test payments. PayPal does generate a password for you by default. However, we recommend changing it to something you’ll remember easily.

To create your password, click the 3 vertical dots under the settings icon column for the Business test email. Then, click on **View/Edit account**.

![Click-view-edit-account](https://wpforms.com/wp-content/uploads/2023/05/view-edit-sandbox-account.png)**Note:** If you’d like to create additional test accounts, be sure to check out [PayPal’s documentation on managing sandbox accounts](https://developer.paypal.com/api/rest/sandbox/accounts/#create-and-manage-sandbox-accounts).

Next, a modal window will appear with your sandbox account details. From here, click on the **Change password** link to change your password.

![Click-to-change-password](https://wpforms.com/wp-content/uploads/2023/05/change-sandbox-account-password.png "Change Sandbox Account Password")Go ahead and enter your new password and click **Save**.

![click-to-save-password](https://wpforms.com/wp-content/uploads/2023/05/save-new-sandbox-password.png "Click the Save Password Link")After changing your password, feel free to close the modal window. However, we recommend keeping the PayPal Developer site open as you’ll need to refer back to it while connecting PayPal Commerce to WPForms.

## Enabling PayPal Commerce Test Mode

Now that your sandbox account is set up, you’ll need to enable Test Mode to prevent PayPal Commerce from processing live transactions. To do this, go to **WPForms » Settings** in your WordPress dashboard and click on the **Payments** tab.

![WPForms-payment-settings](https://wpforms.com/wp-content/uploads/2022/08/wpforms-payment-settings-1.png "WPForms Payments Settings")After that, scroll to the PayPal Commerce section and check the box next to **Test Mode**.

![Enable test mode](https://wpforms.com/wp-content/uploads/2023/09/enable-paypal-commerce-test-mode.png "Enable Test Mode")### Connecting With PayPal Commerce

Now that you’ve enabled Test Mode, you’ll need to connect with PayPal Commerce by clicking the **Connect with PayPal Commerce** button.

![click-connect-with-paypal-commerce-button](https://wpforms.com/wp-content/uploads/2022/08/click-connect-with-paypal-commerce-button-1.png "Click Connect with PayPal Commerce")Next, a modal window will appear where you’ll need to enter your sandbox account details.

![connect-to-paypal-modal-window](https://wpforms.com/wp-content/uploads/2022/08/connect-to-paypal-modal-window.png "Connect to PayPal Modal Window")Go ahead and switch back to your PayPal Developer dashboard and copy the sandbox Business account email address.

![copy-business-email-address](https://wpforms.com/wp-content/uploads/2023/05/select-sandbox-business-account.png "Copy Sandbox Business Email Address")Now, head back to your WPForms payment settings and paste the Business account email address into the **Email** field.

![add-paypal-business-email-address](https://wpforms.com/wp-content/uploads/2022/08/add-paypal-business-email-address.png "Add PayPal Business Email Address")After that, select your country or region from the dropdown.

![select-country-or-region](https://wpforms.com/wp-content/uploads/2022/08/select-country-or-region.png "Select Country or Region")When you’re ready, click **Next** to proceed to the next step.

![click-next-button-paypal-modal](https://wpforms.com/wp-content/uploads/2022/08/click-next-button-paypal-modal.png "Click Next Button to Continue")In the next modal window, enter the password you created when you [set up a sandbox account](#paypal-sandbox-account) and click **Log In**.

![enter-password-and-click-login-button](https://wpforms.com/wp-content/uploads/2022/08/enter-password-and-click-login-button.png "Enter Password and Click Login")A new modal window will appear asking you to “Allow PayPal to connect your account with Test Store.” Go ahead and click the **Agree and Connect** button.

![click-agree-and-connect-button](https://wpforms.com/wp-content/uploads/2022/08/click-agree-and-connect-button.png "Click Agree and Connect")Once you’ve successfully connected your PayPal sandbox account, you’ll see the connection status change to **Connected to PayPal in Sandbox mode**.

![PayPal-connection-status](https://wpforms.com/wp-content/uploads/2022/08/paypal-connection-status.png "PayPal Commerce Connection Status")In the next section, we’ll cover how to create a simple payment form to test your PayPal Commerce transactions.

## Creating a Form to Test PayPal Commerce Payments

Now that you’ve set up your sandbox account for testing, you’ll need a form you can use to test PayPal Commerce transactions. To do this, [create a new form](https://wpforms.com/docs/creating-first-form/ "How to Create Your First Form") or edit an existing one to open the form builder.

Feel free to customize the form however you’d like, but be sure to include a **PayPal Commerce** field. You can add this field by simply clicking on it on the left side of the form builder or by dragging and dropping it into the preview area.

![select-paypal-commerce-field](https://wpforms.com/wp-content/uploads/2022/08/select-paypal-commerce-field.png "Select PayPal Commerce Field")The PayPal Commerce field lets you test available PayPal Commerce payment methods in your form, including PayPal Checkout, credit card payments, and Fastlane when enabled.

If you’d like to test credit card payments, you’ll need to log in to the [PayPal Developer dashboard](https://developer.paypal.com/ "PayPal Developer Dashboard") and use the [test credit card generator](https://developer.paypal.com/developer/creditCardGenerator "PayPal Credit Card Generator").

![paypal-credit-card-generator](https://wpforms.com/wp-content/uploads/2022/08/paypal-credit-card-generator.png "PayPal Credit Card Generator")If you’d like to test Fastlane, click the **PayPal Commerce** field in the form builder preview area and enable the **Fastlane** option under **Supported Payment Methods** in the field options panel.

To complete a Fastlane test transaction, use a PayPal sandbox account during checkout. After entering the sandbox email address in the Fastlane field and continuing, complete the authentication step using `111111` as the one-time password.

**Note:** Want to learn more about accepting payments through your WordPress forms? Check out our guide to [creating payment forms](https://wpforms.com/docs/how-to-create-a-payment-form-in-wpforms/) for all the details.

## Enabling PayPal Commerce Payments in Your Form

Next, you’ll need to enable PayPal Commerce payments for the form you’ll be using to test transactions. In the form builder, go to **Payments » PayPal Commerce** and toggle on the **Enable one-time payments** option.

![enable-one-time-payments-form-builder](https://wpforms.com/wp-content/uploads/2022/08/enable-one-time-payments-form-builder.png "Enable One-time Payments in Form Builder")After enabling this option, additional settings will appear that aren’t required for testing your PayPal Commerce transactions. However, we recommend adding a description to the **Payment Description** field to help you identify your test transactions in your sandbox account dashboard later on.

![PayPal-Commerce-settings](https://wpforms.com/wp-content/uploads/2022/08/paypal-commerce-settings.png "PayPal Commerce Additional Settings")**Note:** The rest of the settings are optional for testing payments, but you’ll want to configure them when you’re ready to accept live transactions. We’ve covered how to configure these settings in more detail in our full [PayPal Commerce addon tutorial](https://wpforms.com/docs/paypal-commerce-addon/).

Now that you’ve enabled PayPal Commerce payments, go ahead and save your form.

## Publishing and Testing Your Form

Once you’ve set up your form, you’re ready to test PayPal Commerce transactions on the frontend of your site. To test your form without publishing it to a live page on your site, you can use the [WPForms form preview option](https://wpforms.com/docs/how-to-properly-test-your-wordpress-forms-before-launching-checklist/#preview) or [create a private page or post](https://www.wpbeginner.com/beginners-guide/how-to-create-a-private-post-in-wordpress/ "How to Create a Private Post in WordPress").

Then, go ahead and complete a test transaction by submitting a test entry for your form. Keep in mind that when you complete the test transaction, you’ll want to use the email address and password associated with the **Personal** sandbox account that PayPal has created for you.

You can find your Personal sandbox account credentials in the [PayPal Developer dashboard](https://developer.paypal.com/ "PayPal Developer Site") by going to **Testing Tools » Sandbox Accounts**.

![personal-sandbox-email](https://wpforms.com/wp-content/uploads/2023/05/select-sandbox-personal-account.png "Personal PayPal Sandbox Account")If you’d like to test the credit card payment, you can use any of [PayPal’s Sandbox test card](https://developer.paypal.com/tools/sandbox/card-testing/) details.

There is also a test credit card associated with your Personal sandbox account that can be used for testing purposes.

To access the credit card, click the 3 vertical dots under the settings icon column and select **View/Edit account**.

![View/Edit Personal Sandbox Account](https://wpforms.com/wp-content/uploads/2023/05/view-edit-personal-sandbox-account.png "View/Edit Personal Sandbox Account")In the overlay that appears, navigate to the **Funding** tab. Here, you’ll see your Personal sandbox card details under the **Credit Card** section.

![PayPal sandbox test credit card](https://wpforms.com/wp-content/uploads/2023/05/paypal-commerce-credit-card.png "PayPal Sandbox Test Credit Card")**Note:** You’ll need to use a different account than the Business sandbox account you’ve used to connect PayPal Commerce to WPForms. If you attempt to complete a test transaction with your Business Sandbox account, PayPal will decline the transaction.

### Viewing Test Transactions in WPForms

To view and manage all test transactions and their details, simply go to **WPForms** » **Payments** and turn on the **Test Data** option.

![viewing-payments-test-data](https://wpforms.com/wp-content/uploads/2023/06/view-payments-test-data.png "Viewing Payments Test Data")For full details on viewing test and live payment information, understanding transaction trends, adjusting for different currencies, and more, check out our guide to [viewing and managing payments](https://wpforms.com/docs/viewing-and-managing-payments/).

**Note:** Looking to offer discounts to your customers through coupon codes? Check out our [Coupons addon tutorial](https://wpforms.com/docs/coupons-addon/ "Coupons Addon") for all the details.

## Viewing Test Transactions in Your PayPal Sandbox Account

After you submit a test payment, you can view the transaction in your PayPal Business sandbox account by [clicking on the Transaction ID in your test entry](https://wpforms.com/docs/paypal-commerce-addon/#viewing-completed-payments).

Alternatively, you can [log in to your PayPal Business sandbox account](https://www.sandbox.paypal.com/ "PayPal Business Sandbox Login") with the same sandbox business email and password you used to connect your account to WPForms.

**Note:** When you’re viewing test transactions, be sure not to use your personal PayPal Business account to log in to your Sandbox account. You’ll need to use the same sandbox Business email address and password you used to [connect with PayPal Commerce](#connecting-your-account).

Once you’ve logged in to your PayPal Business sandbox account, click the **Activity** tab at the top of your account dashboard.

![click-activity-tab](https://wpforms.com/wp-content/uploads/2022/08/click-activity-tab.png "Click Activity Tab in PayPal")Then, click **All Transactions** to view your transactions.

![click-all-transactions](https://wpforms.com/wp-content/uploads/2022/08/click-all-transactions.png "View All Transactions")You should now see your test transaction(s) listed in a table on the following screen.

![all-transactions-table](https://wpforms.com/wp-content/uploads/2022/08/all-transactions-table-1.png "All Transactions Table")**Note:** When you’re done testing PayPal Commerce payments, remember to disconnect your test account in **WPForms » Settings » Payments**, turn off Test Mode, and [connect your live PayPal Business account](https://wpforms.com/docs/paypal-commerce-addon/ "PayPal Commerce Addon") so you can process users’ transactions.

That’s it! Now you know how to test PayPal Commerce payments in WPForms.

Next, would you like to perform a full form test before you publish it on your site? Our complete [form testing checklist](https://wpforms.com/docs/how-to-properly-test-your-wordpress-forms-before-launching-checklist/) walks you through the process step by step.

**Categories:** Payments, Payment Processing

---

