diff --git a/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java b/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java index 8b757e56..548ec517 100644 --- a/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java +++ b/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java @@ -259,6 +259,19 @@ else if (responseCode == BillingClient.BillingResponseCode.ITEM_ALREADY_OWNED) handleItemAlreadyOwned(purchasePayload.split(":")[1]); savePurchasePayload(null); } + + reportBillingError(responseCode, new Throwable(billingResult.getDebugMessage())); + + } + else if (responseCode == BillingClient.BillingResponseCode.USER_CANCELED + || responseCode == BillingClient.BillingResponseCode.SERVICE_UNAVAILABLE + || responseCode == BillingClient.BillingResponseCode.BILLING_UNAVAILABLE + || responseCode == BillingClient.BillingResponseCode.ITEM_UNAVAILABLE + || responseCode == BillingClient.BillingResponseCode.DEVELOPER_ERROR + || responseCode == BillingClient.BillingResponseCode.ERROR + || responseCode == BillingClient.BillingResponseCode.ITEM_NOT_OWNED) + { + reportBillingError(responseCode, new Throwable(billingResult.getDebugMessage())); } } };