Stripe payment form for WordPress

By Dmytro Maksiuta · Published · Updated

A Stripe payment form takes a card payment when someone submits it. In Epic Forms Pro on WordPress, the Stripe field shows Stripe's card form, with Apple Pay and Google Pay buttons above it where the device offers them and the wallet is on in your Stripe account. You connect Stripe with a button, not API keys.

Payment methodsCards, plus Apple Pay and Google Pay where the visitor's device offers them and the wallet is turned on in your Stripe account
ConnectionConnect with Stripe button, no API keys
PlanEpic Forms Pro, from the Pro plan
Checked againstEpic Forms Pro 1.4.0 with Epic Forms 1.3.0
PlatformWordPress, including Elementor pages

Payment methods

A Stripe payment form in Epic Forms Pro takes cards. Apple Pay and Google Pay get their own one-tap buttons above the card form, shown only when the visitor's device offers them and the wallet is turned on in your Stripe account.

The card form opens as a tab and doesn't repeat Apple Pay or Google Pay. Bank redirects such as iDEAL or Klarna, and Stripe Link, are not offered, even if they are turned on in your Stripe Dashboard.

Plan for cards, plus phone wallets where they're on in your Stripe account. If your buyers need bank transfers or pay-later plans, the Stripe field won't offer them.

Connecting Stripe

You connect a Stripe payment form to your Stripe account with the Connect with Stripe button in the field's settings. You don't paste API keys, and your WordPress site never stores a Stripe secret key.

Connect your Epic Forms account first: payments need it. Stripe signs you in through a pop-up window, so allow pop-ups for your site. Before you connect, the form editor can already show Stripe's real card form as a preview; nothing is charged with it.

The Stripe field needs the Pro plan or higher. Connect your Epic Forms account, then Stripe, then set the price.

  1. In the Epic Forms editor, add the Stripe field to your form.
  2. On the field's General tab, click Connect with Stripe and finish signing in to Stripe in the window that opens.
  3. On the Price tab, enter a price and pick a currency your Stripe account accepts. If the form also has Pricing or Custom Price fields, people pay the total of all of them, less any discount code.
  4. On the Validation and error messages tab, keep Required on, or turn it off to offer a Submit without payment button.
  5. Publish the form.

Checks before charging

When someone clicks Pay now on a Stripe payment form, Epic Forms Pro first checks the other fields on the form, then asks your server for the price, and only then charges the card.

If the server's price differs from the total the form showed, nothing is charged and the visitor sees "The price changed — please review and pay again." Within one visit, each Stripe field has one Stripe payment, so a click after it went through records it instead of charging twice.

Visitors can click Pay again after an error without paying twice in the same visit, and the total they see is checked against the server first.

Payment errors

When a payment fails on a Stripe payment form in Epic Forms Pro, the visitor sees one of a few fixed messages, never Stripe's raw error text, such as "The card was declined." or "Please check your card details and try again." Stripe's card form still flags mistyped card details in its own words.

When a payment may have gone through but wasn't recorded, the button changes to Finish payment, which records it without a new charge. If the site's Stripe connection stops working at that moment, the visitor sees "Your payment may have been taken, but we couldn't confirm it. Please contact the site owner."

If a buyer sends you that message, look up the payment in your Stripe Dashboard before asking them to pay again.

Refunds, disputes and entry records

A Stripe payment form entry in Epic Forms Pro changes status when Stripe reports a refund or a dispute: Refunded or Partially refunded, Disputed, and Reversed when a dispute is lost.

Stripe's events reach your site through the Epic Forms connection, so there is no webhook to set up. Each paid entry stores the amount, the status, Stripe's payment ID and, when Stripe reports it, the card brand and last four digits.

Refund in your Stripe Dashboard and the entry follows. The Stripe account and live or test mode show on the WordPress entry screen only, not in emails or exports.

Use inside Elementor

A Stripe payment form works inside an Elementor page through the Epic Forms widget. The free Epic Forms plugin adds the widget, and it runs on free Elementor; Elementor Pro is not needed.

Build the form and its Stripe field in the Epic Forms editor and publish it. In Elementor, drag the Epic Forms widget onto the page and pick the form in Form to display, under Pick a Form. A new form shows in that list after you publish it and reload. The widget is tested with Elementor 3.32 and 4.3.

Change payment settings in the Epic Forms editor. In Elementor, the widget only picks the form and styles it.

Related guides

Plugins that extend your forms

Frequently asked questions

Do I need Stripe API keys for the Epic Forms Stripe field?

No. You click Connect with Stripe in the field's settings and sign in to Stripe in a pop-up window. Connect your Epic Forms account first. Your WordPress site keeps the Stripe account and its publishable key, never a secret key.

Can visitors skip the Stripe payment and still send the form?

Only if you turn off Required for the Stripe field. The field then shows a Submit without payment button, which you can rename. With Required on, the default, the form is not sent until the payment goes through, unless a coupon covers the whole total.

What happens when a coupon covers the whole price?

The Stripe field hides the card form and shows a Submit button instead. Stripe is not called, and the entry shows Covered by coupon.

Does the Stripe field load Stripe's script on every page?

No. Epic Forms Pro loads Stripe.js only when a connected Stripe field is shown on the page. Pages without one, and forms whose Stripe field isn't connected yet, don't load it.

Does a Stripe refund show in Google Sheets?

Yes, with Epic Forms Pro 1.5.0 and a Google Sheets action on the form: refunds that Stripe reports through the Epic Forms connection show in the Payment Status column of your Google Sheet, as the Form to Google Sheets guide explains.

Add Stripe to your WordPress forms

The Stripe field needs the Pro plan or higher. Epic Forms Pro needs the free Epic Forms plugin 1.4.0 or newer.