Reputation: 21
Our game is an in-app purchase game and we would like to verify the order id on our own security server.
We’ve received the purchase result from Google on device, and we are looking for a way to get the order information from developer’s Google wallet by order id which includes in purchase result, because there are some users that use some ways to pass our purchase verification on device without pay.
We can check all the orders on our Google wallet account, so there should be an API for developers to get the order information and we’ve googled for the key words “Google Wallet API”, “Android order id”, etc. but found nothing we can use.
Do you have any clue for this? Or how are you guys verifying orders with the order id?
Upvotes: 2
Views: 3922
Reputation: 12045
Purchase verifycation can be done using Purchase Status API:
token
is the order id from Purchase.getOrderId()
which is received after purchase is completed.Using that, you can check purchaseState
, consumptionState
and developerPayload
, which was sent in your purchase request and can be an unique identifier of the user. For more info see: Purchases products API info
Upvotes: 1