WP Simple Pay Blog

Stripe Tutorials, Tips, and Resources for WordPress to Accept Payments

How to Add a Coupon Code Field to Your WordPress Payment Forms

Last updated on

Written By: author avatar Aazim Akhtar

Imagine sending a launch discount to your email list and then realizing your payment form has no field for customers to enter it. The code goes unused, the promotion falls flat, and the sales you were counting on never come through.

We’ve seen this firsthand with service providers and course creators who build a solid offer but can’t honor a discount at checkout. Without a coupon code field on the payment form, running a promotion means managing exceptions manually, which slows down sales and frustrates customers who expect a smooth checkout.

A coupon code field is an input where customers enter a discount code at checkout, and the payment total updates automatically before they submit. Adding one to a WordPress payment form doesn’t require a developer or a full shopping cart.

WP Simple Pay, the #1 Stripe payments plugin for WordPress, lets you add a coupon field to any payment form and create matching discount codes directly from your WordPress dashboard.

In this article, we’ll show you how to add a coupon code field to your WordPress payment forms and set up discount codes that apply automatically at checkout.

Why Coupon Codes on Payment Forms Drive More Sales?

A coupon code field does more than let customers enter a discount. We’ve noticed that site owners who add one to their payment forms get more measurable return from their promotions than those relying on a price change or a manual workaround.

Here are some of the ways a coupon code field pays off:

  • It closes hesitant buyers. A well-timed discount converts a prospect who has been sitting on the fence. Even a modest percentage off can turn “maybe later” into a completed payment.
  • It rewards loyal customers and subscribers. Sending exclusive codes to your email list or returning clients builds loyalty without reducing prices for everyone. The discount feels personal because it is.
  • It makes promotions measurable. Assigning unique codes to a campaign, a referral partner, or a specific audience segment gives you a direct way to track what’s driving new customers without extra tools.
  • It supports real deadlines. Setting an expiration date on a coupon code creates genuine urgency. WP Simple Pay lets you schedule exactly when a code stops working so the cutoff is enforced automatically.

Adding a coupon code field is one of the fastest changes you can make before your next promotion. Here’s how to set it up.

Accepting Coupons in Payment Forms

The easiest way to accept coupon codes on your WordPress site is to use WP Simple Pay.

WP Simple Pay - best Stripe payment plugin for WordPress

It is one of the best WordPress Stripe plugins that lets you accept discounted payments through valid coupon codes you create. It is trusted by 14,000+ customers processing over $1.1 billion in payments every month. It’s built for site owners who want to collect one-time and recurring payments without setting up a full shopping cart.

WP Simple Pay enables you to create any payment form, like a donation button, subscription form, installment payment form, order form, and more.

Here are some of the features offered by WP Simple Pay that make it the right fit for running coupon-based promotions:

  • Coupon Code Payment Form template. WP Simple Pay includes a pre-built template designed to accept payments with coupon codes, so you don’t have to build the form from scratch.
  • Flexible discount types. Create coupon codes that apply a fixed dollar amount or a percentage off the total, with full control over whether the discount applies once, for multiple billing cycles, or forever.
  • Redemption restrictions. Limit each coupon by expiration date, total redemption count, or specific payment forms to keep promotions targeted and prevent misuse.
  • No additional plugin transaction fee. WP Simple Pay Pro removes the extra 3% plugin fee that many Stripe plugins add on top of Stripe’s standard processing fee, so your promotions don’t cost more than planned.

With that, let’s see how you can use WP Simple Pay to add a coupon code field to your WordPress payment forms.

Let’s take a look at how to accept coupons in payment forms, step by step.

Here’s the form we’re going to create with this tutorial.

coupon code payment form

Step 1: Install and Activate WP Simple Pay

To offer a discount via a coupon code field on your payment forms, you’ll need WP Simple Pay.

First, you can visit the WP Simple Pay website and choose the plan that fits your needs. Coupon codes are available on all Pro plans.

Next, you can download the plugin from your account dashboard. Simply head to the ‘Downloads’ tab, click the Download WP Simple Pay Pro button, and save the plugin files.

Download WP Simple Pay plugin

To install it, you can go to your WordPress backend, navigate to Add New under Plugins, and then click Upload Plugin.

You can click Choose File and find the WP Simple Pay .zip file on your computer. From here, click Install Now. When the upload is complete, press the Activate Plugin button. If you want to install WP Simple Pay via FTP, follow this guide.

After activating the plugin, you’ll be directed to the setup wizard, where you’ll be prompted to connect the plugin to your Stripe account.

In the setup wizard, click Let’s Get Started.

WP Simple Pay setup wizard

Step 2: Connect WordPress to Stripe  

To connect the plugin to Stripe, you’ll be asked to click on Connect with Stripe in the setup wizard.

Connect with Stripe

You can either use an existing Stripe account or create a new one.

After connecting Stripe with the plugin, you’ll see a success page that says ‘🎉 Setup Complete.’

Complete WP Simple Pay setup wizard

The next thing you’ll need to do is to start creating a payment form that accepts coupons. Simply click on the button Create a Payment Form to start.

Step 3: Create a Payment Form

After integrating the plugin with Stripe, it’s your turn to create a payment form with a coupon code field.

If you didn’t click the ‘Create a Payment Form’ button in the setup wizard, then you can always head to WP Simple Pay » Payment Forms from the WordPress admin menu and click the ‘Add New Payment Form’ button.

Add a new payment form

To make it easy to get started, WP Simple Pay offers you tons of pre-built templates to choose from.

While you can add a coupon field to any form template, let’s choose a template called Coupon Code Payment Form for this tutorial. This template preselects all the essential elements you’ll need to use a coupon code field on your form.

Simply search for coupon in the search bar to easily find this template.

When you hover over the template, you’ll find 2 buttons: Use Template and View Demo. To preview the form, click on View Demo, and you’ll be directed to the templates gallery, where you can preview the form and even make a test payment to see how it works.

Let’s click Use Template.

Select coupon payment form template

Step 4: Add the Coupon Code Field

Now that you’ve created a payment form, let’s change the settings to match your needs. You’ll now be landed on the General configuration page.

general settings payment form

In General, go ahead and change the title, description, and form type as needed. With the Type field, you can host the form on your own site or the Stripe checkout page. To learn more, check out this post on selecting the right payment form types.

Next, you can click on the Payment option from the left, and you’ll be able to customize the currency, amount, and even choose between one-time and subscription payment.

payment mode

After that, you can switch to the Form Fields tab.

Here, you can see that a few different form fields have been preselected, including Coupon Code in your template.

form fields coupon code payment form

If you haven’t chosen this template, go ahead and add the coupon code field to your form. This field asks users to enter the coupon code. You can change its label, placeholder, and even the display style of its Apply button.

After making the changes as you wish, you can save the form as a draft.

You’ve now successfully created a payment form and can accept payments in WordPress with coupon entries.

Step 5: Add Coupon Codes

Next up, let’s create coupon codes and specify the discounts you want to offer.

coupon page

Go to WP Simple Pay » Coupons and then click Add New to create coupon codes.

You’ll now see a few different fields.

Add coupon details

The Code field is where you enter the coupon code you want your users to use on your payment forms. In the Type field, specify whether you want to offer a percentage discount or a fixed amount discount.

The Duration field is for users who accept recurring payments on their site. If you don’t accept recurring payments, you can leave it as is. First payment only applies the discount once and reverts to full price on later billing cycles (available on every plan). Forever and Multiple months keep the discount active for the life of the subscription or for a set number of billing cycles, but both require a Professional plan or higher.

The Redemption Restrictions fields are made for scheduling the coupon ahead of time, which comes in handy if you want to offer a limited-time discount, especially during the sale season.

You can also limit the number of times the coupon can be redeemed and limit the payment forms where that coupon can be redeemed.

Once you’ve configured everything, click Add Coupon.

Step 6: Add the Payment Form to a Page

If your payment form works as intended, including the coupon code, then go ahead and publish the form.

You can switch your entire site or individual payment forms to live mode.

add-wp-simple-pay-block-to-page

To embed the form, go to the post or page where you want to embed it. Then click on the + icon to add the WP Simple Pay block.

Then choose a form you just created from the dropdown in the block. And then, click Publish or Update.  There you have it: you’ve successfully added a coupon field to your payment form!

FAQs about Payment Form Coupon Code Field

1. Can I limit a coupon code to a specific payment form?

Yes. When creating a coupon in WP Simple Pay » Coupons, check the option labeled Limit the payment forms where this coupon can be redeemed under Redemption Restrictions. You can search for and select the specific forms the code should apply to. This restriction is not available for Stripe Checkout forms.

2. Can I set an expiration date on a coupon code?

Yes. In the coupon editor, check Specify an expiration date and time by which the coupon can be redeemed under Redemption Restrictions and enter the date and time you want the code to stop working. After that point, the code will be rejected at checkout automatically.

3. Do coupon codes work with recurring subscription payments?

Yes, with a plan requirement for ongoing discounts. On all Pro plans, a coupon code applies to the first payment of a subscription. To keep the discount active on every recurring payment using the Forever duration, a Professional plan or higher is required. For full details on how Stripe processes subscription discounts, see Stripe’s coupon documentation.

4. How does the coupon redemption limit work?

The redemption limit in WP Simple Pay is a total cap across all customers combined, not per customer. A limit of 50 means the code can be used 50 times in total. To prevent a single customer from using the same code more than once, use unique per-customer codes or manage repeat-use rules from the Stripe dashboard.

5. Can I schedule a coupon code to start on a future date?

No, WP Simple Pay does not have a start date field for coupon codes. A code becomes redeemable as soon as you click Add Coupon, so the workaround is to create the coupon on the day you want the promotion to go live. You can still set an expiration date to control when the code stops working.

Adding a coupon code field to your WordPress payment forms is one of the fastest ways to run promotions, reward subscribers, and improve conversions without changing your base pricing. WP Simple Pay handles the field configuration, code creation, and discount enforcement, all without a shopping cart or any custom code.

We hope this guide helped you get your coupon codes working. You may also want to see our guides on how to offer coupons and discounts strategically and how to boost sales with limited-time offers.

What are you waiting for? Get started with WP Simple Pay today!

To read more articles like this, follow us on X.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. We only recommend products that we believe will add value to our readers.

6 responses to “How to Add a Coupon Code Field to Your WordPress Payment Forms”

  1. Rhuphylla Avatar
    Rhuphylla

    Hi, can this plugin be used to integrate with existing forms? We are an airbnb website and would like to add discounts and already using Stripe as payment gateway.

    1. Spencer Finnell Avatar
      Spencer Finnell

      Hello there,

      No, unfortunately WP Simple Pay will not work for you situation. WP Simple Pay is a standalone product and does not integrate with existing form solutions.

  2. Captain K Avatar
    Captain K

    Is there a field – coupon start date? I can’t find where to set the coupon start date. I see only a coupon end date field.

    1. Spencer Finnell Avatar
      Spencer Finnell

      Hello Captain K,

      No, not at this time. The coupon will be redeemable once it is created.

  3. Lisa Hawkins Avatar
    Lisa Hawkins

    It states that even with the limit (#) per customer that the customer can still use it multiple times. How do you fix this issue?

    1. Spencer Finnell Avatar
      Spencer Finnell

      Hello Lisa,

      WP Simple Pay supports limiting the total number of times a coupon can be redeemed — it does not support limiting _who_ can redeem the coupon which does mean someone could make multiple purchases with the same coupon.

      At this time there is not support for limiting coupon redemptions based on the purchase email address, but that is definitely something we could look at adding in the future!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Start Accepting Payments Today

Start accepting one-time and recurring payments or donations on your WordPress website.