### [Testing Stripe Payments](https://wpforms.com/docs/how-to-test-stripe-payments-on-your-site/)

**Published:** March 1, 2024
**Author:** Umair Majeed

**Excerpt:** Learn how to test your Stripe payment forms by using Test Mode.

**Content:**

Do you want to test Stripe transactions before accepting real payments in WPForms? You can make trial purchases using test credit card numbers on your site and analyze the transactions by logging in to your Stripe account.

This tutorial will show you how to perform test Stripe transactions on your site.

- [Enabling Stripe Test Mode](#test-mode)
- [Enabling Stripe Payments](#enable-stripe)
- [Publishing Your Form and Performing the Test](#perform-test)
- [Viewing Test Transactions in WPForms](#view-test-transactions-wpforms)
- [Viewing Test Transactions in Your Stripe Account](#view-transactions)
- [Switching to Live Mode](#live-mode)

![Testing Stripe Payments](https://wpforms.com/wp-content/uploads/2023/06/testing-stripe-payments.gif "Testing Stripe Payments")**Note**: Testing Stripe payments is available to all WPForms users. However, you’ll need a [Pro license level or higher](https://wpforms.com/pricing/) to access the Stripe Pro addon.

---

Before you get started, be sure to [install WPForms](https://wpforms.com/docs/install-wpforms-plugin/ "How to Install the WPForms Plugin") on your WordPress site and [verify your license](https://wpforms.com/docs/verify-wpforms-license/ "How to Verify Your WPForms License").

**Note:** Stripe applies a 3% transaction fee to each payment processed through their platform if your WPForms license is inactive. However, this fee doesn’t apply to test transactions.

## Enabling Stripe Test Mode

**Note:** If you’re using [WPForms Lite](https://wpforms.com/docs/using-stripe-with-wpforms-lite/), you’ll also be able to test your Stripe payments.

When testing your payment form, you’ll need to ensure that no real transactions are made in the process. To do so, navigate to **WPForms » Settings** and go to the **Payments** tab.

![Opening the WPForms payments settings](https://wpforms.com/wp-content/uploads/2021/01/open-wpforms-payments-settings.png)Here, scroll to the **Stripe** section and, toggle on the **Test Mode** option.

![Enabling test mode in Stripe addon](https://wpforms.com/wp-content/uploads/2024/02/enable-test-mode.png)**Note:** When switching Stripe payments to test mode within WPForms settings, please note that this change only applies to the WPForms plugin. If you have other plugins on your site that also use Stripe, this test mode setting won’t affect them. Ensure you check and configure each plugin’s settings individually to avoid any unexpected payment behaviors.

You should also check that there’s a green checkbox for the **Connection Status**. This lets you know that your site has been successfully connected to your Stripe account.

![Checking your Stripe connection status in your WPForms payments settings](https://wpforms.com/wp-content/uploads/2019/09/stripe-connection-status-2.png)**Note:** If you haven’t already connected your site to your Stripe account, you’ll be reminded to [set up Stripe Connect](https://wpforms.com/docs/how-to-install-and-use-the-stripe-addon-with-wpforms/). This will let your site send payment data to your Stripe account, and must be configured separately for live and test payments.

After you’ve checked that Stripe is connected and test payments are enabled, click the **Save Settings** button.

![Saving payment settings in Stripe addon](https://wpforms.com/wp-content/uploads/2024/02/stripe-click-save-settings-button.png)## Enabling Stripe Payments

Next, you’ll either need to [create a new payment form](https://wpforms.com/docs/how-to-create-a-payment-form-in-wpforms/) or edit an existing one with WPForms.

**Note:** You’ll need to add a payment field and the Stripe Credit Card field to your form before testing. For more details, see our guide on [creating a payment form](https://wpforms.com/docs/how-to-create-a-payment-form-in-wpforms/).

Once you’ve added the fields you’d like to use to your form, you’ll need to allow Stripe payments in the form by going to **Payments » Stripe** and toggling on the option labeled **Enable one-time payments**.

![Enabling Stripe payments Stripe addon](https://wpforms.com/wp-content/uploads/2019/09/enable-stripe-one-time-payments-2.png)The other settings here are optional for testing purposes. You can fill them out or leave them blank for now.

**Note:** For more details on configuring Stripe payment settings in your forms, check out our [Stripe for Lite users](https://wpforms.com/docs/using-stripe-with-wpforms-lite/) and [Stripe Pro addon](https://wpforms.com/docs/how-to-install-and-use-the-stripe-addon-with-wpforms/) tutorials.

The Stripe Credit Card field also requires your form to use AJAX submissions. This is when your form submits without requiring the page to refresh.

AJAX submissions are enabled by default in WPForms. You can double-check that this option is turned on by going to **Settings » General** in the form builder. Then click on the **Advanced** section to expand it.

![Expanding the Advanced General settings in the form builder](https://wpforms.com/wp-content/uploads/2019/09/form-builder-settings-general-advanced.png)Here, make sure the setting labeled **Enable AJAX form submission** is toggled to the “on” position.

![Enabling Ajax form submissions](https://wpforms.com/wp-content/uploads/2024/02/stripe-enable-ajax-submissions.png)Once this is all set, don’t forget to save your form.

For a ready-to-use example, take a look at our [Stripe Payment Form Template](https://wpforms.com/templates/stripe-payment-form-template/), which demonstrates how to set up a form with Stripe integration for quick and secure payments.

## Publishing Your Form and Performing the Test

Once you’ve set up your form, you can test payments with it on the frontend of your site. To do this without publishing the form to a live page, you can use the [form preview option in WPForms](https://wpforms.com/docs/how-to-properly-test-your-wordpress-forms-before-launching-checklist/#preview "How to Properly Test Your WordPress Forms Before Launching"), or [create a private page or post](http://www.wpbeginner.com/beginners-guide/how-to-create-a-private-post-in-wordpress/ "How to Create a Private Post in WordPress").

Since you can’t use genuine card information in the Stripe Credit Card field when the addon is in test mode, enter any test card numbers listed in [Stripe’s testing doc](https://stripe.com/docs/testing#cards "Stripe Basic Test Card Numbers") when filling out your form for testing.

## 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/) for all the details.

## Viewing Test Transactions in Your Stripe Account

Stripe does not send payment receipts in test mode so you won’t receive any Stripe payment notifications automatically. To view or send receipts manually, you can check your Stripe Dashboard.

To begin, you’ll need to [log in to your Stripe account](https://dashboard.stripe.com/login). Then, from the top-left menu, select your workplace and click **Switch to sandbox**. Then, click on the **Test mode** option.

![](https://wpforms.com/wp-content/uploads/2024/03/stripe-test-mode-1024x614.png)This will show you an overview of the test payments you’ve received in your Stripe account.

![Viewing a test payment in Stripe](https://wpforms.com/wp-content/uploads/2024/02/test-payment-overview.png)If you’d like, you can view more details for an individual payment. To do so, go to the row for that entry and click on the three dots to see more options. Then, select **View payment details**.

![Viewing payment details for a test transaction in Stripe](https://wpforms.com/wp-content/uploads/2019/09/stripe-view-payment-details.png)On the individual payment details page, you can see more information and options for your specific test payment.

![The payment details for a test transaction in Stripe](https://wpforms.com/wp-content/uploads/2019/09/stripe-test-payment-details.png)## Switching to Live Mode

When you’re done testing, remember to deactivate **Test Mode** in Stripe before allowing users to submit payments in your form. You can do this by going to **WPForms » Settings » Payments**, as in the [previous step](#test-mode).

To enable **Live Mode**, scroll to the **Stripe** section and toggle the **Test Mode** option to the **OFF** position.

![Disabling test mode in Stripe](https://wpforms.com/wp-content/uploads/2019/09/disabling-test-mode-stripe.png)You’ll then need to reconnect WPForms to Stripe by clicking on the **Connect with Stripe** button. Don’t forget to save your settings as well.

![Connecting with Stripe for live mode](https://wpforms.com/wp-content/uploads/2024/02/click-connect-with-stripe-button.png)**Note:** For more details on how to connect your site to Stripe in Live Mode, see our guide to [using the Stripe Pro addon](https://wpforms.com/docs/how-to-install-and-use-the-stripe-addon-with-wpforms/).

That’s it! You can now test Stripe payments in your forms.

Next, do you want to set up automatic form notifications so you can receive submitted entries via email? Be sure to check out our guide on [how to set up form notifications emails](https://wpforms.com/docs/setup-form-notification-wpforms/ "How to Set Up Form Notification Emails in WPForms") for all the details.

**Categories:** Payments, Payment Processing

---

