How do I verify Android in-app-billing transactions on MY server?

后端 未结 3 1495
慢半拍i
慢半拍i 2020-12-23 11:29

I have made an Android app where items can be purchased using in-app-billing. When an item is purchased the transaction can easily be synced between Android Market and the p

3条回答
  •  礼貌的吻别
    2020-12-23 12:07

    Transaction data is signed with a private key specific to your app. There is also a nonce to prevent replays (i.e, sending the same, valid, data multiple times). If you verify that the nonce is unique and the signature is valid at your server, you can be reasonably sure that it's not fake. Check the part about IAB of this Google IO presentation for a discussion.

提交回复
热议问题