Android-inapp-billing-v3: Question: How do i clear "android.test.purchased" and re-purchase while testing from your server?

Created on 24 Jan 2019  路  2Comments  路  Source: anjlab/android-inapp-billing-v3

I am not able to clear the test purchase using the product ID= "android.test.purchased".
However, if i use google app billing sample app procedure, i am able to do it by this command "adb shell pm clear com.android.vending", but its not working this library.

Most helpful comment

bp.consumePurchase("android.test.purchased");

All 2 comments

bp.consumePurchase("android.test.purchased");

Just in case you haven't got your answer yet. I usually clear the purchase state using this command: adb shell pm clear com.android.vending

Was this page helpful?
0 / 5 - 0 ratings