I am personally finding the documentation with the Android Billing Library a bit scarce, I can’t make too much sense this in-app billing.
I understand the method requestPurchase() and how to add items into the catalog. But which methods are used to find what items have been purchased and their state etc?
Does anyone have any sample code that shows the basics of purchasing/ returning purchased items etc?
The “method” used to find what items have been purchased is a request Bundle defined as
"GET_PURCHASE_INFORMATION".In Google’s market_billing sample, it is performed via
GetPurchaseInformation.run()in the service module.This tutorial video can be very helpful in understanding not only security considerations involved but also the actual protocol as there is a downloadable PDF on the right pane, which includes a colorful diagram that may be clearer than the sequence diagram in the Dev Guide.
Hope this helps.