mardi 20 décembre 2016

Google Play In-App Billing - Testing GetPurchases - static responses?

I am just getting started with Google Play In-App purchases. I want to get everything working with Google Play's static responses before creating test products.

I know that I can test making purchases using their reserved product IDs, such as android.test.purchased.

But, the next step is verifying the user's past purchases, using GetPurchases(). How can I test that using static responses?

If I "purchase" the "android.test.purchased" product, then later call GetPurchases(), will it return that item?

  • If not, what is the correct way to get a static response from GetPurchases() that returns a result showing that a product is indeed purchased?

  • If so, what do I need to do to "reset" it, so that it shows the special reserved product as unpurchased later for subsequent tests?

Aucun commentaire:

Enregistrer un commentaire