Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

consumptionState from Google Play Android Developer API

I am writing a backend service to verify the in-app-purchase made from my android game. I am passing the purchase token to Google Play Android Developer API. The google API document here:https://developers.google.com/android-publisher/v1_1/inapppurchases says the 'consumptionState' returned from the API, may be one of these values:

0 - Consumed

1 - Yet to be consumed**

But from what I have tested, the values returned from the API seemed to be opposite, i.e.

1 - Consumed

0 - Yet to be consume

Can anyone confirm this?

Thanks

like image 284
Changhong Avatar asked Oct 22 '22 02:10

Changhong


1 Answers

I agree with you. Google make a mistake on the document(1).

The right one should be :

1 - Consumed

0 - Yet to be consume

like image 168
user3167894 Avatar answered Oct 24 '22 04:10

user3167894