Anyone knows if there is a good reason why StoreKit2 In App Purchase Product and Transaction objects do not contain a complete price with a priceLocale or a currencyCode?
I understand that we are supposed to use the preformatted displayPrice for user-facing labels. However for the app that we are working on we really need to know the currencyCode or priceLocale for accounting purposes otherwise there is really no way to know how much the user actually paid for the purchase.
Note: I know that App Store Connect API provides detailed financial reports, but our use case requires this information on the app-side.
Update: For the moment we are able to solve this issue by using a SKProductRequest.. SKProduct includes the priceLocale which is what we need. I hope StoreKit 2 can include this information as well in the future.
Update: It was announced in WWDC 2022 that the priceLocale would be reintroduced in Product. However the latest version of the beta SDK (Xcode 14.0 beta 2) does not contain it. A reference to a currency formatter style is introduced instead, with var priceFormatStyle: Decimal.FormatStyle.Currency which should allow formatting calculated user-facing strings.