Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove test IAP purchase from Android Google Play

I set up a beta account to test IAP for google app that I am working on, the issue I have is, once I have purchased One-time products(non-recurring charge) the test IAP, I cannot 'remove it' as such, so now, even when I delete the app and re-install, it remembers the purchase, that's great in the real world for a user, but not great when trying to fix the bugs!

Is there any way (short of making a ton of gmail accounts to test with) to remove the purchase from the account?

like image 718
Hypergater Avatar asked Dec 29 '14 22:12

Hypergater


People also ask

How do I test IAP on Google Play?

On selecting the device, the uploaded/selected app will automatically open in the device in question. Alternatively, you can sign in to Google Play Store, download and install a published app and test its in-app purchase feature. Just pick the Install via Google Play Store option.


2 Answers

This is an old question but if someone is still looking for a solution then go to:

  • Google Play console and open the Order Management tab

There you can refund / cancel test purchases. Then clear the purchase state using this command:

adb shell pm clear com.android.vending

like image 147
Bero Avatar answered Sep 16 '22 14:09

Bero


The only way I know is to force a consume in your app. You can then remove that code.

like image 42
Mobile Developer Avatar answered Sep 17 '22 14:09

Mobile Developer