Multi-Currency Checkout: Accepting Payments Globally¶
Overview¶
4Geeks Payments charges each payment in the currency you choose for that link or checkout session. You do not need a separate integration per currency: the amount and currency travel with the session, and the buyer sees that exact amount on the hosted checkout.
What is not automatic is converting the price for each visitor: there is no location-based price detection. You decide the charge currency and, if you want localized prices for different audiences, you create the link or session with that currency.
In this tutorial you will:
- Choose the charge currency for a payment link and for the API.
- Understand how the payout currency differs from the charge currency.
- Avoid the common mistakes when charging in several currencies.
Supported currencies¶
The API accepts ISO-4217 currency codes. The console shows the currency selector in the Create Link form. The amount is always handled with the currency’s real precision, including zero-decimal currencies (for example CLP, PYG, or JPY).
The payout currency is different: it is the currency of your payment account, decided by your business country. See Supported countries for the country and deposit-currency list.
Charge in the currency you choose¶
Payment link from the console¶
- Open Payments → Payment Links → Create Link.
- Enter the link name, the amount, and choose the currency.
- Create the link and share the URL.
The buyer sees the amount in that currency on the 4Geeks-hosted checkout. Different links can use different currencies; each one is independent.
Checkout session from the API¶
POST /v1/payments/session receives the amount in major units and the ISO currency:
curl -X POST 'https://api.4geeks.io/v1/payments/session' \
-H 'X-Api-Key: sk_test_your_api_key_here' \
-H 'Content-Type: application/json' \
-d '{
"amount": "49.00",
"currency": "EUR",
"description": "Pro Plan",
"items": ["Pro Plan"],
"return_url": "https://yoursite.com/success"
}'
The response contains the checkout_url; redirect the buyer there. The amount and currency are fixed for that session.
Two amount units
Checkout sessions (/v1/payments/session) use major units ("49.00"). The Payment Links endpoint (/v1/payment-links) uses the currency’s minor unit (4900). Do not mix them.
How the payout currency works¶
Every successful payment is transferred to your payment account and paid out to your bank. The payout currency is the currency of that account, tied to your business country:
- A business in the United States that charges in
USD,EUR, andGBPreceives payouts inUSD, converting the other two. - A business in Spain that charges in
EURreceives payouts inEUR. - A business in the United Kingdom that charges in
EURreceives payouts inGBP.
The conversion happens when the payout is sent, at the exchange rate of that moment. A conversion fee may apply; see Pricing.
Localizing prices for different audiences¶
If you want a local price per audience, choose it yourself:
- Create one link per currency (for example,
USD 49for your US audience andEUR 45for your European audience). - Or create a checkout session per currency from your backend, using the buyer’s preference you already know (account country, selected plan, or cart currency).
- Show the chosen currency before redirecting the buyer, so there are no surprises at checkout.
The checkout does not guess the buyer’s currency from their location.
Subscriptions¶
A subscription has one billing currency, set on its price. Customers are charged in that currency for the life of the subscription; changing the currency requires a new plan. See Subscriptions.
Reporting¶
The console shows each transaction in the currency it was charged in, and each payout in the account’s currency. When they differ, the payout is the converted amount; use the payout history to reconcile.
Best practices¶
- Pick a price per market, not a raw conversion:
USD 49andEUR 45can both be intentional. - Never mix amount units between the session API and the Payment Links API.
- Keep one account currency: changing the country of an existing payment account is not possible.
- Watch conversion costs when you charge in a currency different from your payout currency.
What’s next¶
Still have questions? Ask on Discord or explore the tutorials.