Currency Routing
Currency routing decides which payment gateways may charge each currency. A USD form can go to Stripe or PayPal, for example, while an INR form goes to Razorpay.
Core Forms checks the route before checkout starts. That stops a form from sending a currency to a gateway that can’t take it.
Set up a route
- Make sure the Payments module is on under Core Forms > Modules.
- Open Core Forms > Settings and scroll to Currency routing in the Payments section.
- Click Add currency and type a three-letter ISO code, such as
GBP. - Under Allowed gateways, tick every gateway that may charge that currency.
- Choose the Default gateway, and make sure it’s ticked under Allowed gateways too.
- Save the settings.
| Column | What it holds |
|---|---|
| Currency | A three-letter ISO currency code. It’s required. |
| Allowed gateways | The gateways that may charge this currency. Every available gateway is listed, configured or not. |
| Default gateway | The first choice at the Core Commerce checkout, and the gateway that generated starter forms use. |
| Remove | Deletes the row. |
The screen sums up the rule: “A configured route is enforced before checkout, preventing a form from sending an unsupported currency to the wrong gateway.” Add each gateway’s keys first, as described in Payment Gateways.
How a route is saved
- The default gateway moves to the front of the row. That order decides what the checkout shows first.
- A Default gateway that isn’t ticked under Allowed gateways is ignored. The first ticked gateway stays the default.
- A row with no gateways ticked is dropped.
- A currency code that isn’t three letters is dropped.
- If a currency appears twice, the lower row wins.
- Rows are sorted by currency code.
A route only allows a gateway. It doesn’t let a gateway charge a currency it can’t take. Creem in a GBP row still fails with “Creem charges in US dollars and euros only, not GBP.”
Default routes
Until you save the table, Core Forms uses these routes:
| Currency | Allowed gateways, default first |
|---|---|
| USD | Stripe, PayPal, Polar.sh |
| EUR | Stripe, PayPal, Mollie |
| INR | Razorpay |
| NGN, GHS, KES, ZAR, XOF | Paystack, Flutterwave |
| UGX, TZS, RWF, XAF, MWK, ZMW, EGP | Flutterwave |
| ARS, BRL, CLP, COP, MXN, PEN, UYU | Mercado Pago |
Five gateways are in no default route: Square, Paddle, Creem, Dodo Payments and FluentCart. Add each one to the rows for the currencies you sell in. Until you do, USD and EUR forms can’t use Square, Paddle, Creem or Dodo Payments.
Two more gaps are easy to miss:
- Paystack takes USD, but the USD route doesn’t include it.
- Mollie takes USD, but only the EUR route includes it.
Defaults stop after the first save
The default routes apply only until the routing table is saved for the first time. From then on, Core Forms uses the saved table, even an empty one.
- New default rows in later versions don’t reach a table that’s already saved.
- Sites that saved routes before Core Forms 5.0 lack the newer rows, such as EUR, the Latin American currencies and the African currencies. Add the rows you need by hand.
- An empty saved table lets forms use any configured gateway, but the Core Commerce checkout refuses every paid order.
After an upgrade, open the table and check that every currency you sell in has a row.
How forms pick a gateway
A form uses the gateway chosen on its Payment tab. Routing decides whether that gateway may charge the form’s currency.
| Form’s currency | What happens |
|---|---|
| Has a route that includes the gateway | Checkout starts. |
| Has a route without the gateway | The buyer sees “This payment provider is not available for EUR. Please contact the site owner.” |
| Has no route | Any configured gateway may charge it, such as Stripe for a CAD form. |
- On the Payment tab, gateways outside the route show “(not routed for EUR)” and are disabled, unless the form already uses one.
- A line under the dropdown lists the gateways the route allows.
- For a currency with no route, the line says “No gateway route is configured for GBP. Add a currency route before using this form for payments.”
Forms with no route still work, but adding one protects them if someone later switches the gateway.
How the Core Commerce checkout picks a gateway
The Core Commerce checkout at /core-checkout/ follows routes strictly.
- The buyer sees every gateway in the plan currency’s route that’s also configured, in route order.
- The default gateway is selected first. With only one gateway, the buyer gets no choice.
- A paid order needs a route. Without one, buyers see “Checkout isn’t available yet” and “No payment method is set up for EUR. Please contact the store.”
- Admins also see a Set up payment routing link on that screen.
When the buyer submits, the checkout can refuse with one of these:
| Message | Cause |
|---|---|
| “The selected payment gateway is not available for EUR.” | The gateway isn’t in the currency’s route. |
| “The selected payment gateway is not configured.” | The gateway’s keys for the current mode are missing. |
| “This payment method adds its own sales tax. Choose another method so tax is not charged twice.” | A taxed order chose Polar.sh, Paddle, Creem or Dodo Payments. See Tax and VAT. |
| “Coupons and tax are not available with this payment method. Choose another method.” | A coupon or tax applies, and the buyer chose FluentCart. |
Which currencies each gateway takes
| Gateway | Currencies |
|---|---|
| Stripe and PayPal | Core Forms keeps no list. |
| Razorpay | About 130, but not BHD, IQD, JOD, KWD, OMR or TND. |
| Polar.sh | A fixed list in Core Forms. |
| Paddle | 33, including USD, EUR, GBP, INR and JPY. |
| Square | USD, CAD, GBP, AUD, JPY or EUR, matching your Square location. |
| Mollie | 28, including EUR, USD and GBP. |
| Mercado Pago | Your account country’s currency: ARS, BRL, CLP, COP, MXN, PEN or UYU. |
| Paystack | NGN, GHS, ZAR, KES, USD or XOF, depending on where your business is registered. |
| Flutterwave | NGN, USD, EUR, GBP, GHS, KES, UGX, TZS, RWF, ZAR, XAF, XOF, MWK, ZMW and EGP. |
| Creem | USD and EUR. |
| Dodo Payments | 138, but no three-decimal currencies. |
| FluentCart | The variation’s currency. |
Other places routes apply
- Starter forms: generated starter forms use the default gateway for their currency.
- Client Invoices, Upgrades and the license admin offer the gateways in the currency’s route.
For developers
- Routes live in the
cf_settingsoption underpayments.currency_gateways, as a map from currency code to gateway keys. The first key is the default. GETandPUT /wp-json/core-forms/v1/commerce/currency-routesread and update the routes. APUTwith no valid rows returns 400 “Add at least one valid currency route and gateway.”- The abilities
get-currency-routesandupdate-currency-routesdo the same. cf_payment_gateways_for_currencychanges a route at runtime.cf_payment_currency_gateway_keysadds gateway keys the router accepts.cf_license_starter_form_gatewaychanges the gateway that generated starter forms use.- Routes can’t be set in wp-config.php.