How to Install and Use the Stripe Addon With WPForms

Would you like to collect payments using your WordPress forms? With our Stripe addon, you can provide an easy way for users to submit one-time payments, or even recurring subscription payments, without ever leaving your site.

In this article, we’ll show you how to install and set up the Stripe addon with WPForms.

  1. Connecting Stripe to Your WordPress Site
  2. Adding Stripe to Your Forms
  3. Setting Up Conditional Logic for Payments (Optional)
  4. Frequently Asked Questions

Requirements: You will need a Pro license level or higher to access the Stripe addon.

Also, Stripe requires your site to have SSL (HTTPS) enabled on the page where you’re adding a live payment form, as this allows you to securely send credit card data to Stripe. For setup details, please see WPBeginner’s guide to adding SSL and HTTPS in WordPress.


1. Connecting Stripe to Your WordPress Site

Before you get started, be sure to install WPForms on your WordPress site and verify your license. Then install and activate the Stripe addon.

Once the Stripe addon is ready to go, you’ll need to open WPForms » Settings in the left menu of your WordPress site. From there, click on the Payments tab.

Accessing the payments settings in WPForms

If you’d like to adjust the currency your site uses, go ahead and select the option you need from the Currency dropdown before proceeding.

Choosing a currency in the WPForms payments settings

When you’re ready, scroll down to the Stripe section. Here, click the blue Connect with Stripe button.

Opening Stripe Connect in WPForms

Note: Test and Live modes must be connected separately. If you’re currently using Test Mode, please be sure to repeat this connection process with the Test Mode option unchecked so that you’re ready to launch your forms.

Next, you’ll be asked to authorize the connection between your forms and Stripe. The exact content you see on this page will vary based on whether your Stripe account is already activated.

Completing the Stripe Connect wizard for WPForms

Once you’ve followed all the steps in the Stripe Connect wizard, you’ll be redirected back to your site’s admin area. Here, you should see a green checkmark next to Connection Status.

WPForms Stripe connection status

2. Adding Stripe to Your Forms

After you’ve connected Stripe to your WordPress site, you can start enabling Stripe payments for your forms.

First, you’ll need to create a new form or open an existing one for editing. You can customize your form however you like, but in order for it to work with Stripe, you’ll need to include the following:

  • An Email field
  • A payment items field (Single Item, Multiple Items, Checkbox Items, or Dropdown Items)
  • A Stripe Credit Card field

For our example, we’ll create a simple order form that includes Name, Email, Dropdown Items, Total, and a Stripe Credit Card field.

An example of a Stripe payment form

Note: A Total field is not required for Stripe to work. However, it’s often helpful for users to easily see how much they’ll be paying.

Once you’ve added any fields you’d like to include in the form builder, you’ll need to go to Payments » Stripe. In the right panel, check the box labeled Enable Stripe payments.

Enabling Stripe payments for a form

Note: In order for the Stripe addon to function correctly, be sure to also enable AJAX form submissions before continuing.

Once you’ve enabled Stripe payments for this form, enter a short Payment Description. This text will appear on users’ credit card statements to help them identify payments made on your site.

Adding a Stripe payment description

Lastly, under Stripe Payment Receipt, choose the Email field from your form. This enables Stripe to send users receipts for their payments.

Selecting the Email field to send Stripe payment receipts to

If you’re using your form to collect one-time payments, you can now save your form and move on to the next step. For recurring payments, such as subscriptions, you’ll need to fill out a few more settings.

Enabling Recurring Subscription Payments

If you would like to charge users on a recurring basis, you can make enable subscriptions for your payment form. Under the section titled Subscriptions, check the box labeled Enable recurring subscription payments.

Enabling recurring Stripe payments for a form

Once you’ve checked this box, you’ll need to complete the other fields in this section, which include:

  • Plan Name: Enter a title for the subscription. This will appear in the transactions for this form in your Stripe account.
  • Recurring Period: Choose how often the recurring payments should occur. Options are Daily, Weekly, Monthly, Quarterly, Semi-Yearly, or Yearly.
  • Customer Email: Select the Email field from your form so the customer can be contacted. This is required to create a subscription for a customer in Stripe.

Stripe subscription settings

Be sure to save your form after making any changes to your settings.

Note: Before launching your payment form, we recommend testing Stripe payments.

3. Setting Up Conditional Logic for Payments (Optional)

The Stripe addon settings also include the option to set up conditional logic. This lets you create “smart forms” that automatically change based on a user’s selections or input.

There are many ways you can use conditional logic with Stripe payments, such as:

Note: For more general information on using smart logic in your forms, be sure to check out our introduction to conditional logic.

Below, we’ve walked through how to set up conditional recurring payments, and how to create conditional payment notification emails.

Conditional Logic for Payments

As an example, we’ll create a form to let users choose to submit either a one-time or recurring donation.

To get started, we’ll create a simple donation form. This will need to include either a Dropdown or Multiple Choice field to let users choose whether they’d like to submit a one-time donation or set up a recurring donation.

Creating a conditional Dropdown Items field

Next, return to the Stripe settings under Payments » Stripe. We’ve already followed the steps in the previous section to configure the basic settings and recurring payment settings, so now we need to set up the conditional logic for our payment options.

Scroll to the bottom of the settings (under the Subscriptions section) and toggle on the option labeled Enable Conditional Logic.

Enabling conditional logic for Stripe subscription payments

This will display additional fields for you to create your conditional rule. For our example, we’ll set the dropdowns to make a rule that states, Process payment as recurring if How often would you like to donate? is Monthly.

Creating a conditional logic rule for Stripe recurring payments

Note: Need help setting up your conditional logic rule? Our beginner’s tutorial on using conditional logic in WPForms has all the details.

Don’t forget to save your form after setting up your conditional logic rule.

Conditional Notification Emails for Completed Payments

By default, WPForms sends out all notification emails as soon as a user submits your form. However, in some cases, you may want to wait to send a notification email until the user’s payment has been successfully processed in Stripe.

To delay notification emails until payment has been successfully completed, go to Settings » Notifications in the form builder. For the notification email that you want to delay, check the box at the bottom of the settings labeled Enable for Stripe completed payments.

Enabling a conditional notification for completed Stripe payments

Note: Need help setting up your notification emails? See our guides to notifications settings and conditional notifications for more information.

Frequently Asked Questions

These are some of the most common questions we receive about using the Stripe addon.

I’ve been using WPForms for a while. Why does this tutorial looks different from what I see on my site?

We’ve updated our Stripe integration so that it’s even more secure and SCA (Strong Customer Authentication) compliant.

To see these new options, you’ll need to complete two steps:

  1. Check that your site is updated to the latest version of WPForms.
  2. Follow our Stripe update guide.
Why isn’t the Connect with Stripe button working for me?

Stripe will only allow owners or administrators to connect an account using Stripe Connect. If you don’t seem to be able to complete the process, please check your Stripe user role to make sure it meets these requirements.

How can I switch to a different Stripe account within my site?

If you’d like to switch over to a different Stripe account for your site, you can do this by navigating to WPForms » Settings » Payments and scrolling to the Stripe section.

From there, click the Switch Accounts link to change which Stripe account your site is using.

Switching to a different Stripe account

How do I test Stripe payments in my forms?

The best way to test out your forms is to submit an entry and follow the same steps as your users. We recommend setting up Stripe’s Test Mode before adding your form to a live page, which allows you to test transactions before accepting actual payments.

Does WPForms store my payment data?

No, WPForms does not store your payment data (or any other form entry data).

In fact, our forms don’t even store sensitive credit card data on your site. Instead, our Stripe integration ensures that this information is communicated securely and directly to Stripe, without ever touching your server. This protects both you and your users from the potential risks associated with storing credit card details.

Is WPForms partnered with Stripe?

Yes, we are! As a Stripe partner, WPForms uses Stripe’s best practices to ensure your payments are consistently reliable and secure.

How do I view purchase details in Stripe?

To easily access payment details in Stripe, open an individual entry for your payment form. In the right sidebar, you’ll see a section titled Payment Details. Here, you can see basic information about the transaction or click the blue link(s) provided to view details in Stripe.

For one-time purchases, you’ll see a single blue link under Transaction ID.

Viewing a Stripe transaction ID on an entry page

For subscriptions, you’ll see three blue links in this same sidebar location for Transaction ID, Subscription ID, and Customer ID. Each link will take you to the relevant details in your Stripe account.

Entry payment details for a Stripe subscription payment

How can I see if a payment is set up as a recurring subscription?

The easiest way to quickly see if a payment is recurring is to go to WPForms » Entries. Be sure you have the correct form selected in the upper left corner.

All entries for the form will be listed here. The Status column will include a dollar icon if a payment was made. If the payment is recurring, you’ll also see a circular arrow icon under the Total column.

Viewing a recurring payment in the Entries list for a form

How can I cancel a subscription for a customer?

You can cancel all subscriptions created through your forms directly within your Stripe account. For more details on how to cancel a subscription in Stripe, be sure to check out its guide on how to pause or cancel subscriptions.

Will I be charged any fees for using Stripe in my forms?

WPForms will never charge a fee for using Stripe in your forms. However, Stripe may charge its own fees based on your usage. For more details on Stripe’s fees, be sure to check out Stripe’s pricing tier breakdown.

That’s it! You can now set up one-time and subscription payments for your forms with the WPForms Stripe addon.

Next, would you like to start boosting your sales? Be sure to check out our tutorial on optimizing your order forms to learn how.