且构网

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

Android Market In-App-Purchase:如何获得用户支付的货币?

更新时间:2023-12-03 16:39:52

截至 IAB 版本 3,可购买商品的 SKU 详细信息包括格式化的价格,其中包括用户将支付的货币(与他们的 Google 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):

price 值的一些示例(不是来自真实 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.