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

后端 未结 5 1728
滥情空心
滥情空心 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:55

    This is very old question but I think it is still relevant.

    My small contribution. Purchase object is extended for one new parameter "acknowledged" and now it looks:

    {
      "orderId":"12999763169054705758.1364365967744519",
      "packageName":"my package name",
      "productId":"77",
      "purchaseTime":1366217534000,
      "purchaseState":0,
      "purchaseToken":"utfwimslnrrwvglktizikdcd.AO-J1OwZ4l5oXz_3d2SAWAAUgFE3QErKoyIX8WuSEnBW26ntsyDmlLgoUd5lshqIY2p2LnlV4tpH4NITB4mJMX98sCtZizH7wGf6Izw3tfW_GflJDKFyb-g",
      "acknowledged":true
    }
    

    So be careful when check signature to add this one extra parameter.

提交回复
热议问题