Post

Replies

Boosts

Views

Activity

Reply to Missing currencyCode in StoreKit2
You can also get currency code but with one trick for now: let price = product.price.formatted() // give you price in string let displayPrice = product.displayPrice let currencySymbol = displayPrice.replacingOccurrences(of: price, with: "") We are using this quick fix for now. Until apple provide any proper solution. Hope will love your problem.
Mar ’22
Reply to Missing currencyCode in StoreKit2
Hey you can you displayPrice will give you the price with local currency symbol. use product.displayPrice And you want to know user's App Store Account currencyCode you can find that from         if let storeFront = SKPaymentQueue.default().storefront {             print(storeFront.countryCode) }
Mar ’22