Country IP not honoured when in checkout with Shopify Payments

Hi!

Background:
The store is set in Sweden and has the base currency set to SEK. We are using Shopify Payments and can therefore set individual prices per country. The website uses the storefront API instead of being hosted on Shopify via a theme.

Problem:
When the user checks out via our website using the Storefront API the user gets sent to Shopify and if they are in the EU then I set the currency to EUR. When they get to the checkout they get the currency in EUR but converted from SEK. Not the currency we have defined per country in the product import. The user has the correct country set via IP location but the price is wrong. It is only when the user continues to shipping the price updates. This causes confusion for the user and results in a loss of sales and increase in support. See the video for an explanation of the problem.
IP is set via browserstack’s VPN.

Found the answer to this myself and leaving this for others with the same problems.
This is fixed in Storefront Api (CheckoutCreate > buyerIdentity) version 2021-07 where you can specify the country of the customer before coming to the checkout. It’s also possible to fix this issue via adding the customer’s full information with country (country name not country code).