requestStorefrontCountryCode(completionHandler:)
Gets the country code for the storefront associated with a customer’s iTunes account.
Declaration
func requestStorefrontCountryCode(completionHandler: @escaping @Sendable (String?, (any Error)?) -> Void)func requestStorefrontCountryCode() async throws -> StringParameters
- completionHandler:
A block that is called when the storefront country code is returned. The block takes the following parameters:
- storefrontCountryCode
The country code of a specific storefront.
- error
An error value that indicates the reason for failure. See Code for possible error values.
Discussion
You need to get the appropriate storefront country code before you specify a product as each country or region contains different products.