Skip to content

Commit

Permalink
all errors are now propagated to the listeners again (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-critcrew authored Feb 14, 2022
1 parent 556bb33 commit b327dd2
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}
};
Expand Down

0 comments on commit b327dd2

Please sign in to comment.