Payment Gateways
Core Forms can take payments through 13 gateways, from Stripe and PayPal to Paystack, Paddle and FluentCart. Each one follows the same pattern: paste its keys, point its webhook at your site, then pick it on a form.
A paid form holds each submission in pending payment until the gateway confirms the charge. Then Core Forms marks it paid and runs the form’s emails and actions.
Turn on payments
- Go to Core Forms > Modules and turn on Payments. It’s off on new sites.
- Open Core Forms > Settings and scroll to the Payments section. It only appears while the module is on.
- Choose Test mode while you set things up.
- Open the gateway’s card, paste its keys for both modes, and save the settings.
- Copy the card’s Webhook URL into the gateway’s dashboard and subscribe to the events listed for that gateway below.
- Paste the gateway’s webhook secret into the card and save again.
- Edit a form, open its Payment tab, tick Require payment and pick the gateway.
With the module off, a form that still requires payment refuses submissions. It never accepts them for free. The Modules page covers turning modules on and off.
Gateway cards and the Configured badge
Each gateway has a collapsible card in the Payments section. The card’s badge reads Configured or Not configured.
- Webhook URL shows the address to give the gateway. Click it to copy it.
- Secret fields are password inputs, and the help under each field says where its value comes from.
- Fields for one mode show only while that mode is selected. Fields marked Both below serve test and live.
- FluentCart’s card appears only while the FluentCart plugin is active. It has no fields and no webhook URL.
Configured only means the API keys for the current mode are saved. It doesn’t check the webhook secret. Without the secret, the gateway rejects every webhook, so payments stay pending and never turn paid.
There are four exceptions. Mollie has no webhook secret, Paystack’s is optional, and FluentCart uses no webhook. PayPal can still settle a one-time payment when the buyer returns, but refunds and renewals need its Webhook id.
Test mode and live mode
One switch at the top of the Payments section sets the mode for every gateway except FluentCart. New sites start in test mode.
| Mode | The screen says | Fields used |
|---|---|---|
| Test mode | “Sandbox keys, no real charges.” | Fields named Test or Sandbox |
| Live mode | “Real cards, real money.” | Fields named Live or Production |
- The mode decides which keys Core Forms reads. PayPal, Polar.sh, Square, Paddle, Creem and Dodo Payments also switch to the gateway’s test API.
- Fields marked Both keep one value for both modes.
- Square, Paddle and Creem have a separate webhook secret field for each mode.
- Dodo Payments and Paystack issue a separate webhook secret per mode but have one field. Paste the other mode’s secret when you switch.
- Mollie checks the key’s prefix, so a
test_key counts only in test mode. - FluentCart follows its own Order Mode under FluentCart > Settings > Store.
Each form’s Payment tab shows a Test mode or Live mode badge, so you can see which keys it will use.
The webhook URL
Every gateway uses the same pattern, and one URL serves both test and live:
https://example.com/wp-json/cf/v1/payments/{gateway}/webhook
Replace {gateway} with the gateway’s key from the comparison table below, such as stripe or mercadopago. Each card shows the full URL for your site.
The route is public. Each gateway checks the request with its provider’s signature, or by reading the payment back from the provider’s API, before it changes anything.
Your gateway’s webhook log shows one of these replies:
| Reply | What it means |
|---|---|
200 with matched:true |
The event updated a submission. |
200 with matched:false |
The event checked out, but nothing needed updating, or Core Forms doesn’t use that event. |
401 invalid_signature |
The webhook secret is missing or wrong. Stripe and Polar.sh also answer 401 to events Core Forms doesn’t use. |
404 unknown_provider |
The gateway key in the URL is wrong. |
| 503 | Core Forms couldn’t finish, for example because the gateway’s API was down. A later retry can succeed. |
Once a submission is paid or refunded, it never drops back to pending or failed. A refunded submission never turns paid again. The Payments overview explains the four payment statuses.
Refunds start in the gateway’s dashboard. Core Forms has no refund button. It records the refund when the gateway’s refund event arrives.
Returning from checkout
- After checkout, the buyer comes back to your site through a signed link that works for 2 hours.
- When a buyer cancels and comes back, a still-pending submission turns
payment_failed. A paid one never changes. - Razorpay, Square, Flutterwave and Creem get no cancel link. A buyer who walks away there can leave the submission pending.
- The return alone never marks a payment paid, except on PayPal. PayPal captures a one-time order on return, and every other gateway waits for its webhook.
- Buyers then land on the form’s Redirect URL. When it’s blank, they see the form’s normal success message.
- A Redirect URL on another domain works only when you type its full address. Field variables can fill the path or query, but never the host.
Testing on a local site
- Gateways need a public URL to send webhooks. Use a tunnel that gives your local site a public address.
- Square signs the notification URL with each event. The URL saved in Square must match the card’s Webhook URL exactly, so a different proxy or tunnel hostname breaks the check.
- Mercado Pago gets the webhook URL with each payment only on HTTPS sites.
Keys in wp-config.php
Every gateway field can come from a constant instead of the settings screen. The name is CORE_FORMS_, then the gateway key and the field key, all in capitals.
define( 'CORE_FORMS_STRIPE_SECRET_KEY_LIVE', 'your-live-secret-key' );
define( 'CORE_FORMS_STRIPE_WEBHOOK_SECRET', 'your-webhook-secret' );
define( 'CORE_FORMS_RAZORPAY_WEBHOOK_SECRET', 'your-webhook-secret' );
- A constant that’s set and not empty wins over the saved value.
- The field turns read-only and says, for example, “
CORE_FORMS_STRIPE_SECRET_KEY_LIVEis set in wp-config.php, so that value is used and cannot be changed here.” - Saving the settings never writes a constant’s value to the database. Remove the constant and the saved value comes back.
- The mode and the currency routes can’t be set by constant.
- Each gateway’s table below lists its constant names.
The form’s Payment tab
A paid form must save submissions. If it doesn’t, the tab shows “Payment forms must save submissions.” with a link to turn storage on.
| Card | Setting | What it does |
|---|---|---|
| Provider | Require payment | “Charge the user before completing this form.” Emails and integrations wait until payment succeeds. |
| Provider | Checkout flow | Hosted checkout sends the buyer to the gateway. Inline Stripe Payment Element shows Stripe’s payment fields inside the form. |
| Provider | Gateway | The gateway for this form. Options marked “(not configured)” or “(not routed for EUR)” are disabled. |
| Pricing | Amount | A fixed amount like 19.99, or a field reference like [total]. Write 1000.50, not 1,000.50. |
| Pricing | Currency | A three-letter ISO code, such as USD or INR. Anything else falls back to USD. |
| Pricing | Description | Shown on the gateway’s checkout page. Field references like [name] work. |
| Pricing | Product picker | Products the buyer chooses from instead of one fixed amount. It appears only when Stripe is the gateway. |
| After payment | Redirect URL | Where buyers land after checkout. Leave it blank to show the form’s success message. |
| FluentCart product | Buyer chooses, Variation ID, Quantity | Only for FluentCart. See the FluentCart section. |
- The inline option appears only after the form is saved with Stripe as its gateway. Pick Stripe, save, then change Checkout flow.
- Under the dropdown, a line shows which gateways the form’s currency allows. See Currency Routing to change them.
- Write the Product picker as one product per line, as
Label|Amount|Description. The description is optional. - One test or live mode applies to every form.
Compare the gateways
| Gateway | Key | Checkout | Automatic renewals | Webhook secret |
|---|---|---|---|---|
| Stripe | stripe |
Hosted Checkout or inline Payment Element | Yes | One for both modes |
| PayPal | paypal |
Hosted, Orders v2 | Yes | A Webhook id for both modes |
| Razorpay | razorpay |
Hosted Payment Links | Yes | One you choose, for both modes |
| Polar.sh | polar |
Hosted checkout | Yes | One for both modes |
| Paddle | paddle |
Paddle overlay on a page your site serves | Yes | One per mode |
| Square | square |
Hosted payment link | No | One per mode |
| Mollie | mollie |
Hosted checkout | Yes | None |
| Mercado Pago | mercadopago |
Hosted Checkout Pro | Yes | One for both modes |
| Paystack | paystack |
Hosted checkout | Yes | Optional, one field |
| Flutterwave | flutterwave |
Hosted payment link | Yes | One you make up, for both modes |
| Creem | creem |
Hosted checkout | Yes | One per mode |
| Dodo Payments | dodo |
Hosted checkout | Yes | One field, for the current mode |
| FluentCart | fluentcart |
FluentCart’s checkout on your site | No, FluentCart Pro runs its own | None |
- Automatic renewals also need the Automatic Renewals module.
- Polar.sh, Paddle, Creem and Dodo Payments are merchants of record and add their own sales tax. The Core Commerce checkout refuses them for orders that already carry tax.
- Square, Paddle, Creem, Dodo Payments and FluentCart are in no default currency route. Under the default routes, USD and EUR forms can’t use the first four until you tick them in those rows.
Stripe
Stripe offers hosted Checkout or an inline Payment Element inside your form. It’s the default gateway for USD and EUR.
| Field | Mode | Constant |
|---|---|---|
| Test publishable key | Test | CORE_FORMS_STRIPE_PUBLISHABLE_KEY_TEST |
| Test secret key | Test | CORE_FORMS_STRIPE_SECRET_KEY_TEST |
| Live publishable key | Live | CORE_FORMS_STRIPE_PUBLISHABLE_KEY_LIVE |
| Live secret key | Live | CORE_FORMS_STRIPE_SECRET_KEY_LIVE |
| Webhook signing secret | Both | CORE_FORMS_STRIPE_WEBHOOK_SECRET |
The secret key for the current mode makes Stripe Configured. The publishable key is needed only for the inline flow.
In the Stripe Dashboard under Developers > Webhooks, add an endpoint with the Webhook URL. Copy its Signing secret into Webhook signing secret. Payments never turn paid without it.
| Use | Events to send |
|---|---|
| Hosted checkout | checkout.session.completed, checkout.session.expired, checkout.session.async_payment_succeeded, checkout.session.async_payment_failed, charge.refunded |
| Inline Payment Element | payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled |
| Automatic renewals | invoice.paid, invoice.payment_failed, customer.subscription.updated, customer.subscription.deleted |
The field’s help names only checkout.session.completed. Send the full list anyway, or refunds, expired sessions and delayed payments won’t reach Core Forms.
Don’t add other events. Core Forms answers them with a 401, so Stripe keeps retrying them.
- Checkout: hosted Checkout sends the buyer to Stripe. Inline forms take payment in place with a Pay securely button, and Stripe.js loads only on those forms.
- Renewals: yes, with the Automatic Renewals module on. A lower first payment becomes a one-time Stripe coupon.
- Refunds: a
charge.refundedevent marks a one-time purchase refunded. Core Forms doesn’t compare the refunded amount with the price. - Currencies: Core Forms keeps no currency list for Stripe. The amount must be above zero.
- Test mode: only the keys change.
PayPal
PayPal uses hosted Orders v2 checkout. It’s the only gateway that can settle a one-time payment as soon as the buyer returns.
| Field | Mode | Constant |
|---|---|---|
| Sandbox client id | Test | CORE_FORMS_PAYPAL_CLIENT_ID_TEST |
| Sandbox client secret | Test | CORE_FORMS_PAYPAL_CLIENT_SECRET_TEST |
| Live client id | Live | CORE_FORMS_PAYPAL_CLIENT_ID_LIVE |
| Live client secret | Live | CORE_FORMS_PAYPAL_CLIENT_SECRET_LIVE |
| Webhook id | Both | CORE_FORMS_PAYPAL_WEBHOOK_ID |
The client id and secret for the current mode make PayPal Configured. The Webhook id comes from your PayPal app, under Webhooks, once you add the Webhook URL there.
Save the Webhook id. Without it, Core Forms rejects every PayPal webhook.
One-time payments still settle when the buyer returns, but refunds and buyers who never return are missed. PayPal also can’t renew plans automatically until the id is saved.
| Use | Events to send |
|---|---|
| One-time payments | CHECKOUT.ORDER.APPROVED, CHECKOUT.ORDER.VOIDED, PAYMENT.CAPTURE.COMPLETED, PAYMENT.CAPTURE.DENIED, PAYMENT.CAPTURE.REFUNDED |
| Automatic renewals | BILLING.SUBSCRIPTION.ACTIVATED, BILLING.SUBSCRIPTION.SUSPENDED, BILLING.SUBSCRIPTION.CANCELLED, BILLING.SUBSCRIPTION.EXPIRED, BILLING.SUBSCRIPTION.PAYMENT.FAILED, PAYMENT.SALE.COMPLETED, PAYMENT.SALE.REFUNDED, PAYMENT.SALE.REVERSED |
PayPal events that Core Forms doesn’t use get a 200 reply, so extra events do no harm.
- Checkout: the buyer approves the order at PayPal. Core Forms captures it on return, or when the
CHECKOUT.ORDER.APPROVEDwebhook arrives first. - Renewals: yes. A lower first payment becomes a one-cycle paid trial. Billing intervals go up to 365 days, 52 weeks, 12 months or 1 year.
- Refunds:
PAYMENT.CAPTURE.REFUNDEDmarks the purchase refunded, without comparing amounts. - Limits: the description is cut to 127 characters. A capture whose amount or currency doesn’t match the purchase is refused.
- Test mode: Core Forms uses PayPal’s sandbox API with the sandbox keys.
Razorpay
Razorpay uses hosted Payment Links. It’s the default gateway for INR.
| Field | Mode | Constant |
|---|---|---|
| Test Key Id | Test | CORE_FORMS_RAZORPAY_KEY_ID_TEST |
| Test Key Secret | Test | CORE_FORMS_RAZORPAY_KEY_SECRET_TEST |
| Live Key Id | Live | CORE_FORMS_RAZORPAY_KEY_ID_LIVE |
| Live Key Secret | Live | CORE_FORMS_RAZORPAY_KEY_SECRET_LIVE |
| Webhook secret | Both | CORE_FORMS_RAZORPAY_WEBHOOK_SECRET |
The key id and secret for the current mode make Razorpay Configured. You choose the webhook secret yourself:
- In the Razorpay Dashboard, open Account & Settings > Webhooks.
- Add the Webhook URL and type a long secret.
- Subscribe to the events below.
- Paste the same secret into Webhook secret in Core Forms and save.
Payments never turn paid without the secret. If you saved it before Core Forms 5.2.4 and webhooks fail their signature check, paste it again.
| Use | Events to send |
|---|---|
| One-time payments | payment_link.paid, payment_link.cancelled, payment.captured, payment.failed, refund.processed |
| Automatic renewals | subscription.activated, subscription.charged, subscription.pending, subscription.halted, subscription.cancelled, subscription.completed |
Events that Core Forms doesn’t use get a 200 reply. You can also add payment_link.expired, which marks expired links as failed.
- Checkout: the buyer pays on a Razorpay payment link, and Razorpay’s own SMS and email notices are off. An abandoned link stays pending until Razorpay reports it cancelled or expired.
- Renewals: yes, once Razorpay turns on Subscriptions for your account. The first payment must equal the renewal, with no trial.
- Renewal limits: plans billed in days need at least 7 days. The renewal must be at least 100 minor units, such as 1.00 INR.
- Turning renewal back on: customers can turn renewal off, but Razorpay can’t restart it.
- Refunds: a refund event marks a one-time purchase refunded, without comparing amounts. Renewal refunds count only when full.
- Currencies: about 130, but not BHD, IQD, JOD, KWD, OMR or TND. The
cf_razorpay_currenciesfilter changes the list. - Description: always the form’s Description, even when the buyer picks a product. It’s cut to 2048 characters.
- Test mode: only the keys change.
Polar.sh
Polar.sh uses hosted checkouts and is a merchant of record, so it adds its own sales tax. It’s third in the default USD route.
| Field | Mode | Constant |
|---|---|---|
| Sandbox access token | Test | CORE_FORMS_POLAR_ACCESS_TOKEN_TEST |
| Live access token | Live | CORE_FORMS_POLAR_ACCESS_TOKEN_LIVE |
| Webhook signing secret | Both | CORE_FORMS_POLAR_WEBHOOK_SECRET |
The access token for the current mode makes Polar.sh Configured. Give it the products:write, checkouts:write and organizations:read scopes, plus subscriptions:write for automatic renewals.
Add the Webhook URL in the Polar dashboard under Settings > Webhooks. Copy its secret into Webhook signing secret, exactly as Polar shows it. Payments never turn paid without it.
| Use | Events to send |
|---|---|
| One-time payments | order.created, order.refunded |
| Automatic renewals | order.paid, subscription.active, subscription.canceled, subscription.uncanceled, subscription.revoked, subscription.past_due |
You can also send checkout.updated, which marks expired checkouts as failed. Don’t add other events. Core Forms answers them with a 401.
- Checkout: Core Forms creates a private product in Polar for each amount, currency and name, with discount codes off. Test mode uses Polar’s sandbox.
- Second price: if your Polar organization uses another default currency, the product also gets a converted price in it. That price is never charged.
- Renewals: yes. The first payment must equal the renewal, with no trial.
- Refunds:
order.refundedmarks a one-time purchase refunded, without comparing amounts. - Currencies: Polar.sh takes a fixed list, which the
cf_polar_currenciesfilter changes. - Tax: the Core Commerce checkout refuses Polar.sh for orders that already carry tax.
Paddle
Paddle uses Paddle Billing, not Paddle Classic. Checkout opens in Paddle’s overlay on a page your site serves.
| Field | Mode | Constant |
|---|---|---|
| Sandbox API key | Test | CORE_FORMS_PADDLE_API_KEY_TEST |
| Sandbox client-side token | Test | CORE_FORMS_PADDLE_CLIENT_TOKEN_TEST |
| Sandbox webhook secret key | Test | CORE_FORMS_PADDLE_WEBHOOK_SECRET_TEST |
| Live API key | Live | CORE_FORMS_PADDLE_API_KEY_LIVE |
| Live client-side token | Live | CORE_FORMS_PADDLE_CLIENT_TOKEN_LIVE |
| Live webhook secret key | Live | CORE_FORMS_PADDLE_WEBHOOK_SECRET_LIVE |
| Checkout page URL (optional) | Both | CORE_FORMS_PADDLE_CHECKOUT_URL |
| Tax mode (optional) | Both | CORE_FORMS_PADDLE_TAX_MODE |
| Tax category (optional) | Both | CORE_FORMS_PADDLE_TAX_CATEGORY |
- API key: from Developer tools > Authentication, with
transaction.read,transaction.write,customer.read,customer.write,subscription.readandsubscription.write. The key alone makes Paddle Configured. - Client-side token: starts with
test_orlive_. It lets Core Forms open Paddle checkout on your site. - Webhook secret key: in Developer tools > Notifications, add a destination with the Webhook URL and copy its secret key. Do this for each mode.
- Tax mode:
account_setting(default),externalorinternal. - Tax category:
standardby default. Paddle must approve any other category, such assaas, for your account first, or checkouts fail.
Paddle checkout opens only after three steps:
- In Paddle, under Checkout > Website approval, add your site’s domain and wait for approval.
- Under Checkout > Checkout settings, set a default payment link. Your home page is fine.
- Save the client-side token for each mode in Core Forms.
Leave Checkout page URL blank. Core Forms then opens checkout on its own page, which loads Paddle.js and isn’t indexed.
| Use | Events to send |
|---|---|
| One-time payments | transaction.completed, transaction.payment_failed, adjustment.created, adjustment.updated |
| Automatic renewals | subscription.activated, subscription.updated, subscription.past_due, subscription.canceled |
- Checkout: after payment, the buyer returns to your site about 3 seconds later. Closing the overlay counts as a cancel.
- Catalog: each transaction carries its own price, so nothing is added to your Paddle catalog. Quantity is always 1.
- Renewals: yes, with the webhook secret saved. The first payment must equal the renewal, with no trial.
- Refunds: an adjustment counts only when it’s approved and covers the full payment.
- Currencies: USD, EUR, GBP, JPY, AUD, CAD, CHF, HKD, SGD, SEK, ARS, BRL, CLP, CNY, COP, CZK, DKK, HUF, ILS, INR, KRW, MXN, NOK, NZD, PEN, PLN, RUB, THB, TRY, TWD, UAH, VND and ZAR.
- Tax: Paddle adds its own tax, so turn off Core Commerce tax for it. The checkout refuses Paddle for taxed orders.
- Routing: Paddle is in no default route. Tick it for each currency you sell in.
Square
Square uses a hosted payment link for one-time payments only. It’s in no default currency route.
| Field | Mode | Constant |
|---|---|---|
| Sandbox application id | Test | CORE_FORMS_SQUARE_APPLICATION_ID_TEST |
| Sandbox access token | Test | CORE_FORMS_SQUARE_ACCESS_TOKEN_TEST |
| Sandbox location id | Test | CORE_FORMS_SQUARE_LOCATION_ID_TEST |
| Sandbox webhook signature key | Test | CORE_FORMS_SQUARE_WEBHOOK_SIGNATURE_KEY_TEST |
| Production application id | Live | CORE_FORMS_SQUARE_APPLICATION_ID_LIVE |
| Production access token | Live | CORE_FORMS_SQUARE_ACCESS_TOKEN_LIVE |
| Production location id | Live | CORE_FORMS_SQUARE_LOCATION_ID_LIVE |
| Production webhook signature key | Live | CORE_FORMS_SQUARE_WEBHOOK_SIGNATURE_KEY_LIVE |
- Application id: optional. In the Square Developer Console, open your application, then Credentials. It catches sandbox and production keys being mixed up. A sandbox id starts with
sandbox-. - Location id: in the Developer Console under Locations. Square charges only in that location’s currency.
- The access token and location id for the current mode make Square Configured.
Add a webhook subscription for each mode:
- In the Developer Console, open your application, then Webhooks > Subscriptions, and add a subscription.
- Set the notification URL to the Webhook URL, exactly as the card shows it.
- Choose
payment.created,payment.updated,refund.createdandrefund.updated. - Paste the subscription’s signature key into that mode’s webhook signature key field.
Square signs the notification URL along with each event. If the URL saved in Square differs at all, every webhook fails.
- Checkout: the buyer’s email is filled in on Square’s page. There’s no cancel link, so a buyer who leaves stays pending.
- Renewals: no. Recurring plans paid with Square renew by hand.
- Refunds: a refund counts only when it’s completed and covers the full payment. Partial refunds change nothing.
- Currencies: USD, CAD, GBP, AUD, JPY or EUR, and only your location’s currency. JPY is charged in whole yen.
- Test mode: Core Forms uses Square’s sandbox with the sandbox keys and location.
Mollie
Mollie uses hosted checkout and needs no webhook secret. It’s third in the default EUR route.
| Field | Mode | Constant |
|---|---|---|
| Test API key | Test | CORE_FORMS_MOLLIE_API_KEY_TEST |
| Live API key | Live | CORE_FORMS_MOLLIE_API_KEY_LIVE |
Copy the keys from Mollie > Developers > API keys for your website profile. The test key starts with test_ and the live key with live_. The card shows Configured only when the key matches the current mode.
There’s nothing to add in Mollie. Core Forms sends the Webhook URL with every payment, and Mollie calls it by itself. Mollie webhooks aren’t signed, so Core Forms reads each payment back from Mollie with your key.
- Renewals: yes, through Mollie subscriptions. Switch on cards, PayPal or SEPA Direct Debit under Settings > Payment methods, so Mollie can charge again.
- SEPA Direct Debit: buyers reach it through iDEAL, Bancontact and other bank methods, in euros only.
- Renewal terms: the first payment can be lower than the renewal. The longest billing interval is one year.
- Turning renewal off and on: off cancels the Mollie subscription. On creates a new one that starts when the paid term ends.
- Refunds: full refunds and chargebacks mark the purchase refunded. A partial refund keeps it paid.
- Currencies: AED, AUD, BRL, CAD, CHF, CZK, DKK, EUR, GBP, HKD, HUF, ILS, ISK, JPY, MXN, MYR, NOK, NZD, PHP, PLN, RON, SEK, SGD, THB, TWD, UAH, USD and ZAR. ISK and JPY take whole amounts only.
- Description: Mollie requires one, cut to 255 characters. A blank one falls back to the form title.
- Routing: Mollie isn’t in the default USD route. Tick it there to take USD.
Mercado Pago
Mercado Pago uses hosted Checkout Pro. It’s the default gateway for ARS, BRL, CLP, COP, MXN, PEN and UYU.
| Field | Mode | Constant |
|---|---|---|
| Test access token | Test | CORE_FORMS_MERCADOPAGO_ACCESS_TOKEN_TEST |
| Production access token | Live | CORE_FORMS_MERCADOPAGO_ACCESS_TOKEN_LIVE |
| Webhook secret signature | Both | CORE_FORMS_MERCADOPAGO_WEBHOOK_SECRET |
- Test access token: from Your integrations > your application > Test credentials, or a test seller account’s production credentials.
- Webhook secret signature: open Your integrations > your application > Webhooks. Set the Webhook URL for production and test, turn on the events below, and copy the secret signature.
The secret is required. The card shows Configured with only an access token, but every webhook is rejected until the secret is saved. Payments then never turn paid.
| Use | Events to turn on |
|---|---|
| One-time payments | payment, under Payments |
| Automatic renewals | subscription_preapproval and subscription_authorized_payment, under Plans and subscriptions |
- Use HTTPS: Core Forms sends the webhook URL with each payment, and returns buyers automatically, only on HTTPS sites.
- Checkout: test mode opens Mercado Pago’s sandbox checkout. Cash payments return the buyer to your site but stay pending until Mercado Pago approves them.
- Renewals: yes. The buyer’s email is required, the first payment must equal the renewal, and there’s no trial. The longest cycle is 360 days or 12 months.
- Refunds: a refunded or charged-back payment marks the purchase refunded.
- Currencies: only your account country’s currency: ARS, BRL, CLP, COP, MXN, PEN or UYU. CLP and COP are charged in whole units.
Paystack
Paystack uses hosted checkout for African currencies. It’s first in the default routes for NGN, GHS, KES, ZAR and XOF.
| Field | Mode | Constant |
|---|---|---|
| Test secret key | Test | CORE_FORMS_PAYSTACK_SECRET_KEY_TEST |
| Live secret key | Live | CORE_FORMS_PAYSTACK_SECRET_KEY_LIVE |
| Webhook signing secret | Both | CORE_FORMS_PAYSTACK_WEBHOOK_SECRET |
- Secret keys: from Settings > API Keys & Webhooks in the Paystack dashboard. The test key starts with
sk_testand the live key withsk_live. There’s no public key field. - Webhook URL: on the same Paystack screen, paste it into both the Test and the Live Webhook URL. Paystack sends every event there, so there’s nothing to pick.
- Webhook signing secret: optional. Paste the
whsec_secret for the mode you run in, or leave it empty to check signatures with your secret key. Replace it when you switch modes.
The secret key alone makes Paystack Configured. If you use a restricted rk_ key, save the webhook signing secret too, because restricted keys can’t verify webhooks.
Core Forms uses charge.success, subscription.create, invoice.update, invoice.payment_failed, subscription.not_renew, subscription.disable and refund.processed. It only acts on events from the mode it’s in.
- Buyer email: required. Add an email field to the form.
- Renewals: daily, weekly, monthly, every 3 or 6 months, or yearly, at the same price every cycle, with no trial.
- Refunds: any
refund.processed, partial ones included, marks the purchase refunded. - Currencies: NGN, GHS, ZAR, KES, USD and XOF, depending on where your business is registered. Amounts below Paystack’s minimum, such as 50.00 NGN or 2.00 USD, are refused.
- Routing: Paystack takes USD, but the default USD route doesn’t include it. Tick it there for USD forms.
Flutterwave
Flutterwave uses its hosted v3 payment link. It shares the default African routes with Paystack and is the only default gateway for UGX, TZS, RWF, XAF, MWK, ZMW and EGP.
| Field | Mode | Constant |
|---|---|---|
| Test secret key | Test | CORE_FORMS_FLUTTERWAVE_SECRET_KEY_TEST |
| Live secret key | Live | CORE_FORMS_FLUTTERWAVE_SECRET_KEY_LIVE |
| Webhook secret hash | Both | CORE_FORMS_FLUTTERWAVE_WEBHOOK_SECRET |
- Secret keys: the v3 keys from Settings > API Keys, in test or live mode. The test key starts with
FLWSECK_TEST. Stay on v3 keys. - Webhook secret hash: any long random text you make up.
The secret key alone makes Flutterwave Configured, but webhooks fail until the hash is saved. Set the webhook up once in test mode and once in live mode:
- In Flutterwave, open Settings > Webhooks and choose the v3 webhook.
- Paste the Webhook URL.
- Enter your text as the Secret hash.
- Tick “Receive webhook response in JSON format”, “Enable webhook retries” and “Enable webhook for refunds”.
- Paste the same text into Webhook secret hash in Core Forms and save.
Core Forms uses charge.completed and refund webhooks for payments, plus subscription.cancelled for automatic renewals. If you saved the hash before Core Forms 5.2.4 and webhooks fail their signature check, paste it again.
- Checking charges: Core Forms reads each charge back from Flutterwave. If the reference, amount or currency don’t match, the submission stays pending for you to check.
- Buyer email: required. Add an email field to the form.
- Checkout: there’s no cancel link, so a buyer who leaves stays pending. The key decides the mode.
- Renewals: daily, weekly, monthly, quarterly or yearly, at the same price every cycle, with no trial.
- Currencies: NGN, USD, EUR, GBP, GHS, KES, UGX, TZS, RWF, ZAR, XAF, XOF, MWK, ZMW and EGP. The
cf_flutterwave_currenciesfilter changes the list.
Creem
Creem is a merchant of record with hosted checkout in USD and EUR. It’s in no default currency route.
| Field | Mode | Constant |
|---|---|---|
| Test API key | Test | CORE_FORMS_CREEM_API_KEY_TEST |
| Test webhook secret | Test | CORE_FORMS_CREEM_WEBHOOK_SECRET_TEST |
| Live API key | Live | CORE_FORMS_CREEM_API_KEY_LIVE |
| Live webhook secret | Live | CORE_FORMS_CREEM_WEBHOOK_SECRET_LIVE |
| Tax mode (optional) | Both | CORE_FORMS_CREEM_TAX_MODE |
| Tax category (optional) | Both | CORE_FORMS_CREEM_TAX_CATEGORY |
- API keys: from Developers > API keys. For the test key, switch the Creem dashboard to test mode first and copy the key that starts with
creem_test_. - Webhook secrets: in Developers > Webhooks, add the Webhook URL and copy its secret. Switch to test mode first for the test secret.
- Tax mode:
exclusive(default) orinclusive. - Tax category:
saas(default),digital-goods-serviceorebooks.
The API key alone makes Creem Configured, but payments never turn paid without the webhook secret.
| Use | Events to select |
|---|---|
| One-time payments | checkout.completed, refund.created |
| Automatic renewals | subscription.active, subscription.paid, subscription.update, subscription.scheduled_cancel, subscription.canceled, subscription.expired, subscription.past_due, subscription.unpaid |
- Checkout: Core Forms creates the products it sells in your Creem catalog on first use. There’s no cancel link, so a buyer who leaves stays pending.
- Renewals: yes. The first payment must equal the renewal, with no trial, and renewals must be at least 1.00.
- Refunds: only full, succeeded refunds count.
- Currencies: USD and EUR only, from 1.00.
- Tax: the Core Commerce checkout refuses Creem for taxed orders.
- Routing: tick Creem in the USD and EUR rows before forms can use it.
Dodo Payments
Dodo Payments is a merchant of record with hosted checkout. It’s in no default currency route.
| Field | Mode | Constant |
|---|---|---|
| Test mode API key | Test | CORE_FORMS_DODO_API_KEY_TEST |
| Live API key | Live | CORE_FORMS_DODO_API_KEY_LIVE |
| Webhook signing secret | Both | CORE_FORMS_DODO_WEBHOOK_SECRET |
| Tax category | Both | CORE_FORMS_DODO_TAX_CATEGORY |
| Prices and tax | Both | CORE_FORMS_DODO_TAX_BEHAVIOR |
- API keys: in Developer > API Keys, with write access. Test and live are separate Dodo environments, so switch the dashboard to Test Mode before you create the test key.
- Webhook signing secret: in Developer > Webhooks, add the Webhook URL and copy the endpoint’s
whsec_secret. - One secret per mode: test and live endpoints have separate secrets. Paste the one for your current mode, and replace it when you switch.
- Tax category:
digital_products(default),saas,e_bookoredtech. - Prices and tax:
exclusive(default) orinclusive. Changing either tax setting creates new products in Dodo.
The secret is required. Dodo shows Configured, and even offers automatic renewals, with only an API key. Every webhook is still rejected until the secret is saved, so payments never turn paid.
Subscribe to payment.succeeded, payment.failed, refund.succeeded, subscription.active, subscription.updated, subscription.renewed, subscription.on_hold, subscription.cancelled, subscription.expired and subscription.failed. Core Forms also handles payment.cancelled and payment.processing if you add them.
- Checkout: Core Forms creates its products in your Dodo catalog automatically. Discount codes and currency choice are off on Dodo’s page.
- Renewals: yes. The first payment must equal the renewal. Turning renewal off cancels at the next billing date.
- Refunds: only full refunds count.
- Currencies: 138 currencies, but no three-decimal currencies.
- Tax: turn off Core Commerce tax for Dodo purchases. The checkout refuses Dodo for taxed orders.
FluentCart
FluentCart sells a FluentCart product variation through FluentCart’s own checkout on your site. It needs no keys and no webhook.
Its card appears only while the FluentCart plugin is active, and it has no fields. Each form picks what to sell in the FluentCart product card on its Payment tab.
| Field | What it does |
|---|---|
| Buyer chooses | Optional. A select or radio field name, plus the variation IDs it may pick. Each option’s value must be a variation ID, and other values are refused with “Choose one of the listed options.” |
| Variation ID | The variation to sell. Copy its numeric ID in FluentCart, or click Browse FluentCart products. |
| Quantity | A fixed number, or a field reference like [qty]. |
- Pricing: price and currency come from the variation, so the Pricing card is ignored.
- Paid and refunded: the submission turns paid when FluentCart marks the order paid, and refunded when FluentCart refunds it.
- Mode: FluentCart’s own Order Mode applies, under FluentCart > Settings > Store. The Payment tab shows FluentCart: Test or FluentCart: Live.
- Renewals: Core Forms doesn’t renew FluentCart purchases. Subscription variations renew through FluentCart Pro.
- Webhooks: don’t point any webhook at FluentCart’s URL. It rejects every request.
- Coupons and tax: the Core Commerce checkout refuses FluentCart when a coupon or tax applies.
- Routing: FluentCart is in no default route, and routing reads the form’s Currency setting. If the Gateway dropdown marks FluentCart “(not routed for USD)”, tick it in that row.
For developers
cf_payment_completedpasses$submissionand$form. It fires after a payment turns paid and the form’s actions have run, including after a PayPal return capture or a paid FluentCart order.cf_payment_amountfilters the amount. Core Commerce uses it for coupons and tax.cf_commerce_merchant_of_record_gatewayschanges which gateways count as adding their own tax.cf_razorpay_currencies,cf_polar_currencies,cf_paystack_currenciesandcf_flutterwave_currencieschange those gateways’ currency lists.- Over the Headless REST API, a payment form answers with
redirect_urlfor hosted checkout orpayment.client_secretfor inline Stripe. A gateway failure answers 422.
Troubleshooting
Buyers never see a gateway’s own error text. Core Forms writes it to the PHP error log as [Core Forms] Payment checkout failed for form #12 (provider=stripe): ... and marks the submission payment_failed.
| Message or symptom | What to do |
|---|---|
| “This form requires payment, but the payment provider is not configured. Please contact the site owner.” | Turn on the Payments module, then add the gateway’s keys for the current mode. |
| “This payment provider is not available for EUR. Please contact the site owner.” | Tick the gateway in the EUR row under Currency Routing. |
| “Payment forms must save submissions. Enable submission storage in the form settings.” | Turn on submission storage in the form’s settings. |
| “Payment could not be started. Please try again or contact the site owner.” | Find the [Core Forms] Payment checkout failed line in the PHP error log. It names the gateway’s error. |
Submissions stay in pending_payment |
Check the gateway’s webhook log. A 401 means the webhook secret is missing or wrong, and a missing event means the webhook isn’t set up. |
401 invalid_signature in the webhook log |
Paste the secret again for the current mode, especially if you saved it before 5.2.4. On Square, match the URL exactly. On Stripe and Polar.sh, remove events Core Forms doesn’t use. |
| “Square rejected the access token. Check that it belongs to the mode Core Forms is in (sandbox or production).” | Paste the token for the mode you’re in. Mercado Pago, Paddle, Creem and Dodo Payments log similar messages. |
| “Paddle returned no checkout link. Set a default payment link in Paddle under Checkout → Checkout settings.” | Finish the three Paddle checkout steps in the Paddle section. |
| “Paystack needs the buyer’s email address. Add an email field to the form.” | Add an email field. Flutterwave, and Mercado Pago renewals, need one too. |
| “Creem charges in US dollars and euros only, not GBP. Choose another currency or payment method.” | Change the form’s currency, or route that currency to another gateway. Other gateways log similar “cannot charge in” messages. |