You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that BillingObserver.onTransactionsRestored() is called when transactions successfully restored. Is it possible to find out if RESTORE_TRANSACTIONS request finished with errors?
When I call BillingController.restoreTransactions() I see in logcat "Request 4893727498997809316 received response RESULT_DEVELOPER_ERROR", that's ok but BillingObserver.onRequestPurchaseResponse never called :( Or may be it's called in release versions? How can I get response code using this library?
The text was updated successfully, but these errors were encountered:
@mastermind- https://github.com/mastermind- that's because
onTransactionsRestored is only called if the ResponseCode == RESULT_OK.
But this can easily be fixed with this patch:
diff --git AndroidBillingLibrary/src/net/robotmedia/billing/BillingRequest.java AndroidBillingLibrary/src/net/robotmedia/billing/BillingRequest.java
index 8362559..f18f55f 100644
--- AndroidBillingLibrary/src/net/robotmedia/billing/BillingRequest.java
+++ AndroidBillingLibrary/src/net/robotmedia/billing/BillingRequest.java
@@ -217,9 +217,7 @@ public abstract class BillingRequest { @OverRide
public void onResponseCode(ResponseCode response) {
super.onResponseCode(response);
I know that BillingObserver.onTransactionsRestored() is called when transactions successfully restored. Is it possible to find out if RESTORE_TRANSACTIONS request finished with errors?
When I call BillingController.restoreTransactions() I see in logcat "Request 4893727498997809316 received response RESULT_DEVELOPER_ERROR", that's ok but BillingObserver.onRequestPurchaseResponse never called :( Or may be it's called in release versions? How can I get response code using this library?
The text was updated successfully, but these errors were encountered: