Android Question In App Billing Server Response Codes

tucano2000

Active Member
Licensed User
Longtime User
Finally I'm getting use InAppBilling3 library to retrieve information of purchased products or subscriptions. Now how do I get the Server Response Codes when the user tries to buy a product and no success ?

_PurchaseCompleted event only returns state success true or false. I need the other server response as well:

https://developer.android.com/google/play/billing/billing_reference.html#billing-codes

BILLING_RESPONSE_RESULT_OK 0 Success
BILLING_RESPONSE_RESULT_USER_CANCELED 1 User pressed back or canceled the dialog
BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE 2 Network connection is down
BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE 3 Billing API version is not supported for the type requested
BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE 4 Requested product is not available for purchase
5 BILLING_RESPONSE_RESULT_DEVELOPER_ERROR Invalid arguments provided to the API. This error can que Also Indicate the application was not signed or enquiry.c Correctly set-up for In-app Billing in Google Play, or does not have the Necessary permissions in its manifest
BILLING_RESPONSE_RESULT_ERROR 6 Fatal error during the API action
BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED 7 Failure to purchase since item is already owned
BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED 8 Failure to consume since item is not owned
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…