Rovenue SDKBeta
FunnelsWeb

Prices in local currencies

Charge each web funnel visitor in their own currency from one Stripe Price — currency_options, tax_behavior, how the session's currency is chosen from trusted geo, country overrides, the coverage matrix and the publish checks.

A web funnel can show and charge each visitor in their country's currency: a visitor in Türkiye pays in TRY, one in Germany in EUR, one in Japan in JPY. It uses Stripe's multi-currency Prices — one Price per package, with extra currencies in currency_options — so a package still has exactly one Stripe price id. Revenue is still reported in USD, converted at the payment day's rate.

1. Add currencies to your Stripe Prices

On each Stripe Price the funnel sells, add the currencies you want under currency options (currency_options in the API). Each option needs a fixed unit_amount. An option with tiers, a custom (buyer-chosen) amount, or a fractional unit_amount_decimal is ignored, as if it were absent (apps/api/src/services/stripe/price-resolver.ts:150-181).

Do the same on every Price the funnel can charge in that currency:

  • each package's subscription or one-time Price;
  • each package's intro price, if any;
  • each upsell offer's Price.

Stripe Tax. When Stripe Tax is on for the project, each currency option needs a tax behaviour, as the Price's default currency does: its own tax_behavior (inclusive or exclusive), or the account's default tax behaviour from the Stripe Tax settings (with Automatic, USD and CAD are exclusive and every other currency inclusive). An option with neither is not used: visitors who would pay in it pay in the price's default instead.

Zero-decimal currencies. Amounts are in the currency's minor unit as Stripe defines it: JPY, KRW and the other zero-decimal currencies have none, so unit_amount: 1200 in jpy is ¥1,200, not ¥12. Rovenue divides by Stripe's own minor-unit table, never the browser's (packages/shared/src/currency.ts:39-75), and shows exactly the amount it charges.

2. Switch the funnel to the visitor's currency

In the builder: Settings tab › Payments › Currency (apps/dashboard/src/components/funnel-builder/payments-section.tsx:362-381).

  • Charge in — Price default (every visitor pays in each Stripe price's default currency; the default for every funnel) or Visitor's currency.
  • Country overrides — charge a country in a currency other than its own, for example EUR in Switzerland. Overrides apply in Visitor's currency mode only.
  • Currency coverage — a matrix with one row per funnel visitors can land on (this funnel, and each experiment arm) and one column per currency. A cell says how many of that row's prices can be charged in the currency. A visitor is charged in a currency only when the whole row has it.

The setting is stored on the document:

{
  "link": true,
  "wallets": true,
  "currency": {
    "mode": "local",
    "overrides": { "CH": "eur" }
  }
}

Override keys are upper-case ISO 3166-1 alpha-2 countries; values are lower-case currency codes from Stripe's list. Anything else is refused at publish (CURRENCY_COUNTRY_INVALID, CURRENCY_CODE_INVALID).

How a session's currency is chosen

Once, when the session starts, after the experiment arm is drawn (apps/api/src/routes/public/funnels.ts:1044-1053, apps/api/src/services/funnel/session-currency.ts:74-145):

  1. In Price default mode: the price's default. No Stripe read.
  2. In Visitor's currency mode, from the visitor's country: the override for that country, else the country's own currency (packages/shared/src/funnel/country-currency.ts). Countries whose currency Stripe cannot charge get the default.
  3. The candidate is accepted only when every Price the served arm can charge — its packages, their intro prices and its upsell offers — has a usable option in it (with tax_behavior when Stripe Tax is on). Otherwise the visitor pays the price's default.
  4. The candidate is accepted only when this server can convert it to USD today — USD, a cached or stored rate for today, or the built-in static table (canConvertToUsd, apps/api/src/services/fx.ts). A currency with no rate is never pinned or charged: its revenue could not be reported, so the visitor pays the price's default instead.

The chosen currency is pinned on the session and used for everything after: the paywall's package list, the checkout, the Stripe charge, the intro and the upsells. What is shown is what is charged.

Country comes from trusted geo only

The country is the visitor fact from the server's geo lookup — a Cloudflare country header signed with the edge secret, or the operator's country database (Self-hosting: the country lookup). Browser language, Accept-Language, URL parameters and anything else the visitor can set are never used, so a visitor cannot pick a cheaper currency.

When the lookup is off (GEOIP_SOURCE=off, the self-host default) every country is unknown, and every visitor pays the price's default. The Payments section says so with a hint.

Rovenue Cloud

Visitor-country lookup is not yet switched on for Rovenue Cloud. Until it is, Visitor's currency charges every visitor the price's default.

If Stripe cannot be read when the session starts, the session gets the price's default; the session never fails or waits because of it.

If a currency disappears

If you remove a currency option from a Price while sessions are pinned to it, the next quote moves the session to the price's default once. A payment attempted in the old currency is refused with 409 CURRENCY_UNAVAILABLE before anything is created on Stripe, and the runner fetches a new quote and shows the new price (apps/api/src/routes/public/funnel-payment.ts:1433-1458). Because a Stripe Customer cannot hold subscriptions in two currencies, the next attempt creates a new Customer and cancels the earlier attempt's unpaid objects (apps/api/src/routes/public/funnel-payment.ts:1764-1779).

The other stale-quote answers (CURRENCY_CHANGED, METHOD_PLAN_CHANGED) are on Payment methods.

The same happens when a pinned currency loses its exchange rate mid-session (the rate feed stopped and the cached rate expired): the next quote shows the default, and a payment in the old currency is refused with 409 CURRENCY_UNAVAILABLE and the session moves to the default once.

Publish checks

CodeLevelCause
PRICE_DEFAULT_CURRENCY_MISMATCHblockerThe packages default to different currencies. Each experiment arm is judged on its own packages
INTRO_PRICE_CURRENCY_MISMATCHblockerAn intro price lacks a currency the funnel sells its package in
UPSELL_CURRENCY_MISMATCHblockerAn offer's price is in another default currency, or (in Visitor's currency mode) lacks a currency the checkout sells in
CURRENCY_CODE_INVALID, CURRENCY_COUNTRY_INVALIDblockerA malformed override
CURRENCY_OVERRIDE_UNPRICEDwarningAn override names a currency some package has no price in; that country pays the default
CURRENCY_TAX_BEHAVIOR_MISSINGwarningStripe Tax is on and an option (of a package's price or its intro price) has no tax_behavior and the account sets no default; visitors who would pay in it pay the default
CURRENCY_NO_FX_RATEwarningA currency the funnel could sell in has no exchange rate on this server today. Visitors who would pay in it are charged the price's default instead; the funnel still sells. If the default itself has no rate, its revenue is reported 1:1 in USD

Each row, with the code that raises it, is in What publishing checks and its warnings.

Revenue and analytics

Each payment is converted to USD at the payment day's rate, as for every other store (Display currency). A currency with no rate is never pinned for a session, so a funnel only charges in a local currency revenue can convert. Only a price default with no rate is still reported 1:1 (convertToUsd in apps/api/src/services/fx.ts), which is why publishing warns about it. The session's charge currency is recorded on the session, its purchase and its funnel events, and the Revenue tab can group by currency (Funnel Revenue Analytics).

Limits

  • One currency per session, chosen at its start. A visitor who travels mid-funnel keeps it.
  • A country's currency is fixed by the table plus your overrides; you cannot pick per visitor or per language.
  • All packages a funnel (or arm) sells must share one default currency.
  • Prices are not converted for you: each currency's amount is the one on the Stripe Price.
  • Web funnels only. Native funnels are priced by the app store.

On this page