In backend, merchant assigns a default currency to a country. Frontend resolves the country from the IP and sets the currency as working currency.