Android-inapp-billing-v3: Consume purchase not working

Created on 21 Jun 2018  路  2Comments  路  Source: anjlab/android-inapp-billing-v3

I was doing a test on consume purchase however no pop up is showing up. If I use purchase() it is working. Is this a bug?

Most helpful comment

Got it. Thanks.. Here is what I did. So far it is working on test

 bp?.consumePurchase(PRODUCT_ID_TEST)
 bp?.purchase(this,PRODUCT_ID_TEST)

All 2 comments

It is not a bug. If you use purchase() and actually purchase something in the app, the popup will not show again. This is normal behaviour in order to prevent users from buying something again and again. If you want to repeat the purchase, you have to consume it first by calling consumePurchase(productId).
It is explained in the README file.

Got it. Thanks.. Here is what I did. So far it is working on test

 bp?.consumePurchase(PRODUCT_ID_TEST)
 bp?.purchase(this,PRODUCT_ID_TEST)
Was this page helpful?
0 / 5 - 0 ratings