#axe_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1503493792638959666
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
I'm not sure I fully grasp your usecase
Adaptive pricing lets users pay in their localized currency but when you create a Price, there's still a currency you'd pick
Are you asking how you can show both the currencies on your product page?
Supabase as an example.
Let's say products are declared in USD in the stripe dashboard with the amounts shown in the image and the green call-to-action buttons link to an embedded stripe checkout with adaptive pricing. If a user visits this page in the UK, can I show them the price in GBP (ยฃ) that stripe will use in the embedded checkout in my own site's price comparison?
Ah, no - I don't believe that's something Stripe APIs can help with. You can geolocate the customer yourself and guess the currency to show an estimate price but we don't have any API endpoints that can geolocate the customer and present the local prices
I guess you can use the FX Rate API to get an estimated conversion
but geolocating the customer is something you'd need to do yourself
Ok so there's always a chance that Stripe's calculation of the final local price will be different from what I can calculate
The quote you get from the FX Quotes API is only valid for a period of time and there are other terms - https://docs.stripe.com/payments/currencies/localize-prices/fx-quotes-api?setup=use-fx-quotes-with-sdk#terms-of-use
Ok, thanks for clarifying ๐.
Happy to help!