How do I get the currency code for IAP purchases on IOS?

The Android IAP plugin includes priceCurrencyCode in the list of product details (https://docs.coronalabs.com/plugin/google-iap-v3/event/productList/products.html). But I do not see an equivalent value in the iOS product details (https://docs.coronalabs.com/api/library/store/event/productList/products.html). I need this currency code so I can pass it to the GameAnalytics api for logging in-app purchases (https://github.com/GameAnalytics/GA-SDK-CORONA/wiki/Business%20Event). Does anyone know how I can get the currency code (e.g. USD, JPY, GBP, etc.) for iOS purchases?

We are limited by what the vendor provides us.

What I would do is setup a lookup table that uses the priceLocale value to map to a currency code, i.e.

local currencyMap = {} currencyMap["us"] = "USD" currencyMap["uk"] = "GBP" currencyMap["fr"] = "EUR"

etc. There may already be a web page out there that has locale to currency code that could seed your table.

Rob

We are limited by what the vendor provides us.

What I would do is setup a lookup table that uses the priceLocale value to map to a currency code, i.e.

local currencyMap = {} currencyMap["us"] = "USD" currencyMap["uk"] = "GBP" currencyMap["fr"] = "EUR"

etc. There may already be a web page out there that has locale to currency code that could seed your table.

Rob