#StackBounty: #android #in-app-purchase #in-app-billing Google In-app-purchase: How to check if a consumable product purchase status is…

Bounty: 50

I have integrated android In-App purchase to an android application. I overridden the onPurchaseUpdated method to get the response of the purchase.

public void onPurchasesUpdated(int responseCode, @Nullable List<Purchase> purchases) {
    if (responseCode == BillingResponse.OK) {
        //handling purchase logic here

Now I noticed an user tries to purchase an in-app consumable product and while his purchase status is on pending, after some time he cancels the purchase. He is repeating this process over and over again.

So if the purchase status is on pending, does the google returns BillingResponse.OK as response code? If not how to check if the purchase status is on pending or what happens when a purchase is on pending?

I looked about the response code in google play billing reference doc, but found no information about pending purchase.

Here is the link: https://developer.android.com/google/play/billing/billing_reference.html

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.