ResponseCode

Enum class that represents the possible values in a general response of the Android Billing SDK.


Public parameters

NameTypeDescription
valueIntResponseCode of the response.

value

Possible values of the Response:

ValueTitleDescription
0OKSuccess.
1USER_CANCELEDUser pressed back or canceled the interaction.
2SERVICE_UNAVAILABLEThe network connection is down.
3BILLING_UNAVAILABLEThis billing API version is not supported for the type requested.
4ITEM_UNAVAILABLERequested SKU is not available for purchase.
5DEVELOPER_ERRORInvalid arguments provided to the API or incorrect invocation of the Methods.
6ERRORFatal error during the API action.
7ITEM_ALREADY_OWNEDFailure to purchase since item is already owned.
8ITEM_NOT_OWNEDFailure to consume since item is not owned.