we have an issue implementing a custom storefront API checkout. We provide Apple Pay checkout and get the following address from Apple:
Country code: DE
Normally, we would just send the countryCode to `checkoutShippingAddressUpdateV2` in order to ensure the correct country is set when selecting the shipping address. However, in contrast to many other mutations, Storefront API's MailingAddressInput seems to be missing this property.
Why this is necessary
As seen, the country by external providers can be provided localized, meaning that 'Germany' becomes 'Deutschland'. Using an ISO country codes we don't need to translate the name to the english country name but instead just pass the ISO code.
It would be great if this issue could be considered in upcoming API releases.
Solved! Go to the solution
This is an accepted solution.
Thanks for letting us know that this is a pain point for you, we appreciate the feedback. I can see that this would be adding an extra step in sending the address through. I'll forward this on to our product team for future consideration.