Kontagent ios.用于跟踪的货币代码



我有kontagent分析插件在我的Unity项目(v. 1.5.7),有一个问题。当我进行购买时,我可以设置玩家在游戏中花费多少钱,但如果玩家不以美元消费,我就会得到错误的金额。我可以在追踪IAP到Kontagent服务器时设置货币代码吗?

或者你能给我一些将当地货币兑换成美元的插件吗?

乌利希期刊指南:我用链接来兑换钱。但是。例子:
瑞典购买7克朗(0.99美元)可兑换101美分(需要99美元)。这是因为不同的转换系统在我的应用程序和服务器苹果。
所以,当我追踪IAP到Kontagent服务器时,我是否可以设置货币代码?

显示价格:

_priceFormatter = [[NSNumberFormatter alloc] init];
[_priceFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[_priceFormatter setLocale:product.priceLocale];
aLabel.text = [_priceFormatter stringFromNumber:product.price];

并发送到kontagent,像这样:

Upsight.trackInAppPurchase("com.lucksound.product.item", 1,
    UpsightIosPurchaseResolution.Buy, iapReceiptData);

您应该根据需要更新到最新版本(现在是Upsight)。Github链接

你不需要单独改变苹果的数量

最新更新