Android Market的应用内购买:如何获得货币,用户将在买单? [英] Android Market In-App-Purchase: How to get the currency a user will pay in?
问题描述
我在使用应用内购买,迎合国际观众的Android应用程序,所以我希望支付不同的货币。当然,我想显示的项目转让与用户的本地货币,但我真的不知道怎么办。
I have an Android app using In-App-Purchase that caters to an international audience, so I expect payments in different currencies. Of course I would like to show the items for purchase with the user's local currency, but I don't really know how.
使用的用户的地区或语言似乎是一个坏的指标,作为货币似乎取决于市场的区域占的用户正在使用,而不是在设备的设置。
Using the region or language of a user seems like a bad indicator, as the currency seems to depend on the region of the Market account the user is using and not on the device settings.
我如何可以找出哪些货币,用户会在支付?
How can I find out which currency a user will pay in?
感谢。
推荐答案
由于 IAB 3版,SKU的详细信息可购买的物品包括一个格式化的价格,其中包括本币的用户将在支付(相应货币的谷歌Play商店):
As of IAB Version 3, the SKU details for the purchasable item include a formatted price, which includes the currency the user would pay in (the corresponding currency to their Google Play store):
对价格值
(而不是一个真正的SKU)的一些例子:
Some examples of values of price
(not from a real SKU):
- 3,99€
- £2.99
- $ 4.99
修改:我已经更新了SKU详细信息表,现在包括有关price_currency_ code字段信息
EDIT: I've updated the SKU details table, now including information about the price_currency_code field.
这篇关于Android Market的应用内购买:如何获得货币,用户将在买单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!