Intro
Khaime converts a merchant’s prices into a customer’s local currency in real time and routes the payment to the gateway that handles that currency.Context
Multicurrency sits between pricing and payment: Calculate Pricing and Get Product Pricing do the conversion (and apply any regional price rules), and Create Charge is where the converted amount actually gets charged. Once the customer’s currency is known, Gateway Routing determines which processor handles the payment.Hows
1
Merchant sets a baseline currency
e.g. USD — all products are priced in this currency.
2
Customer's currency is detected
Via IP geolocation, or manual selection on your storefront. Get Currencies lists the codes to offer and the recommended detection flow.
3
Prices are converted
Using live exchange rates, with any active regional price adjustment applied first.
4
Payment is processed
In the customer’s currency, via the gateway Gateway Routing resolves for that currency.
5
Merchant is credited
In their baseline currency, unless they hold the customer’s currency.
6
Merchant receives payout
In their baseline currency.
Supported currencies
Khaime supports 35 currencies across 5 regions. Prices can be converted to — and payments accepted in — any of these. For the live list, call Get Currencies instead of hard-coding this table.- Africa
- Americas
- Europe
- Middle East
- Asia-Pacific
Holding currencies
By default, a payment in any currency other than the merchant’s baseline (settlement) currency is converted to the baseline currency when it is credited to the merchant’s wallet. A merchant can choose to hold other currencies instead: a payment in a held currency is credited in that currency, to a separate wallet balance, with no conversion. For example, a Nigerian merchant whose baseline currency isNGN can hold USD. A customer who pays in USD adds to the merchant’s USD balance, and a customer who pays in NGN adds to the NGN balance. Without USD held, the USD payment would be converted to NGN on arrival.
The baseline currency is always held. Holding a currency changes where money is kept, not where it is paid out: a withdrawal from a held balance is converted to the baseline currency at the day’s rate and paid out in the baseline currency. Merchants in Nigeria, Ghana, Kenya and South Africa are paid to a local bank account, so their baseline currency is always their local currency.
Who sets it
- A merchant chooses its held currencies in the Khaime dashboard.
- A marketplace operator chooses them for one of its active sub-merchants, with Update Holding Currencies, or in the dashboard from the sub-merchant’s Payout tab. Get Merchant Details returns the current list as
payout.enabled_currencies.
Exchange rates
Prices are converted using live exchange rates, refreshed regularly so customers see current pricing. Rates are cached briefly, which is why charge validation below allows a tolerance rather than requiring an exact match.Get converted pricing
Charge in customer’s currency
charge_amount/charge_currency— what the customer pays (already converted)merchant_amount/merchant_currency— the merchant’s original pricing, inclusive of all fees (shipping, etc.)converted_total_amount/converted_total_currency— your pre-computed conversion result; Khaime re-checks this against its own conversion and rejects the charge if they don’t match beyond a small tolerance. Fetch pricing and create the charge close together.
