Server-side verification of Google Play In-app billing version 3 purchase

后端 未结 5 1732
滥情空心
滥情空心 2020-12-01 00:09

I\'m unable to find a straight answer as to how I verify an in-app billing purchase on the server before making downloadable content available to the user.

I use in

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 00:47

    This is too old question, but I hope my answer can help somebody.

    You have to validate signature on client side, and then you have to pass purchaseToken to server side, and then server will contact Google's server and get all necessary information about purchase, such as purchaseState and consumptionState.

    https://developers.google.com/android-publisher/api-ref/purchases/products

提交回复
热议问题