---
title: currencyCode
framework: storekit
role: symbol
role_heading: Instance Property
path: storekit/transaction/currencycode
---

# currencyCode

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

## Declaration

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

## Discussion

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. important: For financial and accounting purposes, use the App Store Connect reporting tools. For more information, see Download financial reports and Overview of reporting tools. 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

- [environmentStringRepresentation](storekit/transaction/environmentstringrepresentation.md)
- [offerID](storekit/transaction/offerid.md)
- [offerPaymentModeStringRepresentation](storekit/transaction/offerpaymentmodestringrepresentation.md)
- [offerType](storekit/transaction/offertype-swift.property.md)
- [reasonStringRepresentation](storekit/transaction/reasonstringrepresentation.md)
- [storefrontCountryCode](storekit/transaction/storefrontcountrycode.md)
