How to get separate price and currency information for an in-app purchase?

后端 未结 8 1513
攒了一身酷
攒了一身酷 2020-12-24 07:02

I am implementing in-app purchases for an app with support for several countries.

The In-App Billing Version 3 API claims that:

No currency co

8条回答
  •  我在风中等你
    2020-12-24 07:12

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

    The getSkuDetails() method

    This method returns product details for a list of product IDs. In the response Bundle sent by Google Play, the query results are stored in a String ArrayList mapped to the DETAILS_LIST key. Each String in the details list contains product details for a single product in JSON format. The fields in the JSON string with the product details are summarized below

    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 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".

提交回复
热议问题