且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何获得不同的价格和货币信息的应用程序内购买?

更新时间:2022-12-31 10:01:32

的全部信息,可以发现的此处,但基本上是在2014年八月与解决:

Full information can be found here, but essentially in August 2014 this was resolved with:

的getSkuDetails()方法

这个方法返回产品标识列表的产品细节。在由谷歌播放发送的响应包,查询结果被存储在一个字符串的ArrayList映射到DETAILS_LIST键。在细节列表中的每个字符串中包含的产品细节JSON格式的单品。在JSON字符串与产品细节的领域总结如下

price_currency_ code ISO 4217货币code价格。例如,如果在英国的英镑被指定的价格,price_currency_ code是英镑。

price_currency_code ISO 4217 currency code for price. For example, if price is specified in British pounds sterling, price_currency_code is "GBP".

price_amount_micros 价格在微单元,其中百万微单位等于货币的一个单位。例如,如果价格是€七点九九,price_amount_micros是7990000。

price_amount_micros Price in micro-units, where 1,000,000 micro-units equal one unit of the currency. For example, if price is "€7.99", price_amount_micros is "7990000".