Android Question In App Billing Server Response Codes

Discussion in 'Android Questions' started by tucano2000, Mar 7, 2015.

  1. tucano2000

    tucano2000 Active Member Licensed 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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    They are currently not exposed.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice