I’m working on an application that has users from multiple countries. I sell products on the platform, and I want to display product prices in each user’s local currency based on their country. What is the best way to detect the user’s currency and show the correct prices?
I’ve never done anything like this myself, but the most logical approach to me would be to use a plugin or some code to detect the user’s country based on their IP address. Alternatively, you could simply ask users to select their country during signup.
Then you could integrate with a currency conversion API, such as https://currencyapi.com/, so you can display your website prices with a reasonable level of accuracy in the user’s local currency.