Skip to main content

Commerce & payments

Stripe in Core Forms

Take one-time payments via Stripe Checkout when a form is submitted.

Bundled with Core Forms, the WordPress forms plugin with every premium feature in the box. No add-on tax.

Bundled, no add-on tax Unlimited sites Use code BLACKFRIDAY for 40% off either plan. Ends December 2 (IST).

A WordPress Stripe payment form built with Core Forms charges the visitor on a Stripe-hosted Checkout page or inline with Stripe's Payment Element, so they never leave your page. You add test and live keys under Settings → Payments, register one webhook in Stripe, then turn on Require payment for each form that should charge.

Add Stripe credentials once on the global Settings → Payments screen, then flip the Payment toggle on any form. Submissions are held in <em>pending payment</em>, the user is redirected to a Stripe-hosted Checkout session, and the submission flips to <em>paid</em> the moment Stripe's webhook confirms — at which point email and integration actions fire automatically.

Stripe at a glance

Stripe APIs
Checkout Sessions + Payment Intents
Flows
Hosted Checkout or inline Payment Element
Test mode
Stripe test keys
Amount
Fixed, field reference, or product list
Webhook
/wp-json/cf/v1/payments/stripe/webhook
Paid status
Set by the signed webhook only

Full reference: Stripe flows and setup

What you get

How Stripe works in Core Forms

Hosted checkout

Uses Stripe's Checkout Sessions API. Cards, Apple Pay, Google Pay, link — Stripe handles the surface.

Test + live keys

Both modes configurable side-by-side. Toggle test/live globally without re-entering keys.

Webhook-verified

Submissions only flip to paid after a signed webhook delivery. Browser return is a UX hint, not the source of truth.

Field-driven amounts

Charge a fixed price, or reference a form field like [TIER] for tier-based pricing.

Use cases

What people build with Stripe and Core Forms

Pay without leaving the page

Pick the inline Payment Element flow. On submit, Stripe's payment fields mount inside the form with a "Pay securely" button.

Let buyers choose a plan

Enter one product per line as Name|price|description. Core Forms adds a required dropdown, and the server resolves the price, so a tampered request can't change the charge.

Charge a calculated total

Set the amount to a field reference like [total] and the form charges whatever the calculation or the visitor's entry comes to.

Send real receipts

Use [CF_PAYMENT_ID] and [CF_PAYMENT_AMOUNT_FORMATTED] in an email action. They fill in once the webhook confirms the charge.

Set it up

Connect Stripe in 3 minutes

  1. 1

    Add API keys

    Settings → Payments → Stripe. Paste your publishable + secret keys for each mode.

  2. 2

    Add the webhook endpoint

    Stripe Dashboard → Developers → Webhooks → add the URL shown on the Payments settings card.

  3. 3

    Enable on a form

    Form → Payment tab → flip Require payment, choose Stripe, set amount and currency.

Want the long version? Read the step-by-step guide with screenshots of every setting.

Every setting, filter, and error message is documented in the Stripe flows and setup.

Inside Core Forms

Stripe in WP-Admin

The Stripe card in the Payments settings with the webhook URL and the test publishable key, secret key and webhook signing secret
Test and live keys sit side by side, and one switch above the card chooses which pair is active.
The Payment tab of a product form with Require payment on, the checkout flow selector offering hosted checkout or the inline Payment Element, Stripe selected and a fixed amount of 19.00 USD
Stripe is the one gateway with an inline flow, so the visitor can pay without leaving the page.
Good to know

Requirements and limits

  • Subscribe the webhook to checkout.session.completed, checkout.session.expired, and charge.refunded, and add payment_intent.succeeded and payment_intent.payment_failed if any form uses the inline flow.
  • Stripe can't reach a localhost webhook URL, so tunnel your dev site with ngrok or localcan.com before testing payments locally.
  • The product list is Stripe-only; the other gateways take a fixed amount or a field reference.
  • Fullscreen mode refuses forms with payment fields, so keep payment forms in the normal layout.
FAQ

Stripe integration questions

Should I use hosted Checkout or the inline Payment Element?
Hosted Checkout is the default and redirects to Stripe, the same shape as the other gateways. The inline Payment Element keeps the visitor on your page and loads Stripe.js only for the payment fields. Both wait for the signed webhook before actions run.
Can a double-click charge someone twice?
No. Each submission gets exactly one Checkout Session or PaymentIntent, created with an idempotency key derived from the submission ID, so retries and double-clicks reuse it.
What if the buyer closes the tab right after paying?
The submission still flips to paid when Stripe's webhook arrives. The return URL is treated as a hint, never as proof of payment, which also stops anyone from faking a success by editing that URL.
How do I test without charging a real card?
Switch Settings → Payments to Test mode and use your Stripe test keys. The form preview runs a rehearsal that shows the planned gateway, amount, and currency without charging anything.
How can I check that Stripe webhooks are reaching my site?
Run wp core-forms doctor. It reports whether each configured payment gateway has ever received a webhook, and exits non-zero when a check fails. See the WP-CLI reference.

Bundled with every Core Forms license.

Stripe and every Core Forms-built integration on this site are included with your license. Use code BLACKFRIDAY for 40% off either plan. Ends December 2 (IST).

Black Friday Sale

40% off Core Forms

Forms, polls, surveys, payments, and licensing — every feature, unlimited sites, one plugin.

Copy your code

Those are the after-discount prices. Paste BLACKFRIDAY at checkout to apply it. BLACKFRIDAY40 works too.

Ends December 2 (IST)