How to clear the "in-app billing service" cache

android, in-app-purchase

Solution

This should work, although then you may need to authenticate on Play Store again:

Problem

In the documentation for in app billing (v3), it says: "Upon a successful purchase, the user’s purchase data is cached locally by Google Play’s In-app Billing service." I now want to thoroughly test my app's billing code and wish to clear that cache. Its important because without the data being in the cache, it may take a little longer to collect the data - or it may not be accessible at all. I want to test that my app can handle these cases. So is there a way to clear that cache?

Original source