#joseph01
1 messages · Page 1 of 1 (latest)
hello! i think what you're looking for is https://stripe.com/docs/payments/checkout/present-local-currencies - but the presented Price is not determined by the country selection in the Checkout page
that's not possible in the hosted Checkout page. If you want to present the price based on the country selected, then you need to ask your customer to select a country before you create the Checkout Session, and specify the currency when creating the Checkout Session : https://stripe.com/docs/payments/checkout/present-local-currencies#specify-a-currency
Okay that seems fair. But If I am using two currency like
currency_options: {eur: {unit_amount: 9000}, jpy: {unit_amount: 12000}}
and my local is eur. Then how come the jpy will show to customer from japan? If country selection price is not possible.
When a customer loads a Checkout Session, Checkout tries to automatically present the customer’s local currency as determined by their IP address. Checkout automatically presents the local currency if all of the following are true:
- The Session’s Prices, Shipping Rates, and Coupons with amount_off all have the relevant currency in their currency_options.
- If a Price on the Session has an upsell, the upsell’s Price has the relevant currency in its currency_options.
- For Sessions using Stripe Tax, the tax_behavior on a Session is specified for the relevant currency for all of the Session’s Prices, Shipping Rates, and Coupons with amount_off.
- You didn’t specify a currency during Checkout Session creation.
Okay. Thank you so much!