1

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

或者你能告诉我任何将当地货币转换为美元的插件吗?

UPD:我使用链接来兑换货币。但。示例:
瑞典购买 7 克朗(0.99 美元)转换为 101 美分(需要 99)。这是因为我的应用程序中的不同转换系统是服务器苹果。
那么,我可以在跟踪 IAP 到 Kontagent 服务器时设置货币代码吗?

4

1 回答 1

0

显示这样的价格:

_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);

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

您不需要与苹果分开更改金额。

于 2014-08-28T12:40:17.887 回答