Reputation: 996
I have kontagent analytics plugin in my Unity project (v. 1.5.7) and have one problem. When I have purchases, I can set how much a player spends in my game, but if a user doesn't spend in USD I get the wrong amount of money. Can I set the currency Code when track IAP to Kontagent server?
Or can you to advice me any plugins for convert local currency to USD?
UPD:
I use link to convert money. But. Example:
Swedish purchase of 7 Krona ($0.99) is convert to 101 cent (need 99). This is because different convert system in my app an server apple.
So, can I set currency Code when track IAP to Kontagent server?
Upvotes: 1
Views: 203
Reputation: 88
Show the price like this:
_priceFormatter = [[NSNumberFormatter alloc] init];
[_priceFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[_priceFormatter setLocale:product.priceLocale];
aLabel.text = [_priceFormatter stringFromNumber:product.price];
and send to kontagent like this:
Upsight.trackInAppPurchase("com.lucksound.product.item", 1,
UpsightIosPurchaseResolution.Buy, iapReceiptData);
You should update to the latest version (Now Upsight) for you needs. Github Link
You shouldn't need to change the amount separately from apple.
Upvotes: 0