How do we verify Android in-app billing receipt on the server side?

前端 未结 3 674
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 08:44

I am implementing in-app billing into an Android game and we want to use a server to store the purchase information.

According to what I understood so far, Android Marke

3条回答
  •  [愿得一人]
    2021-02-02 09:28

    Update: You can use the getPurchases() method to retrieve "un-consumed" purchases, as explained in the developer docs:
    http://developer.android.com/google/play/billing/billing_reference.html#getPurchases

    Original Answer (now out of date)

    The Google Checkout API is deprecated. You should now use the Purchase Status API.

    If you plan to use the Purchase Status API, the link above mentions these limitations:

    • You can use the API to check the status of individual items only — bulk requests for order status are not supported at this time.
    • You can query for the details of orders placed on or after 12 June 2013, but not for orders placed earlier.
    • You can query purchases of any item type made with the In-app Billing v3 API, or purchases of managed items made with In-app Billing v1 and v2. You can not use the Purchase Status API to query purchases of unmanaged items made with In-app Billing v1 or v2.

提交回复
热议问题