Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

MailingAddressInput support for countryCode

Solved

MailingAddressInput support for countryCode

ocastx
Shopify Partner
31 6 12

Hi,

 

we have an issue implementing a custom storefront API checkout. We provide Apple Pay checkout and get the following address from Apple:

Country: Deutschland
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.

 

Accepted Solution (1)

csam
Shopify Staff (Retired)
267 40 51

This is an accepted solution.

Hi @ocastx 

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. 

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)

csam
Shopify Staff (Retired)
267 40 51

This is an accepted solution.

Hi @ocastx 

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. 

To learn more visit the Shopify Help Center or the Community Blog.