Contents

currencyCode

The three-letter ISO 4217 currency code for the price of the product.

Declaration

@backDeployed(before: iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0)
var currencyCode: String? { get }

Discussion

The currencyCode property contains an ISO 4217 alpha-3 string that represents the currency of the price of the product. Use currencyCode to access the currency of the price on systems earlier than iOS 16, iPadOS 16, macOS 13, tvOS 16, and watchOS 9. Otherwise, use currency.

Don’t use currencyCode to infer the storefront. Use the storefront value in the transaction instead.

For more information on how you set prices, see Set a price for an in-app purchase.

See Also

Deprecated