> For the complete documentation index, see [llms.txt](https://onestore-dev.gitbook.io/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/annptations/purchaseclient.responsecode.md).

# PurchaseClient.ResponseCode

public static @interface PurchaseClient.ResponseCode\
com.gaa.sdk.iap.PurchaseClient.ResponseCode

<br>

Response code used in the SDK

\
Constants <a href="#id-en-purchaseclient.responsecode-constants" id="id-en-purchaseclient.responsecode-constants"></a>
----------------------------------------------------------------------------------------------------------------------

***

### RESULT\_OK <a href="#id-en-purchaseclient.responsecode-result_ok" id="id-en-purchaseclient.responsecode-result_ok"></a>

int RESULT\_OK Success\
Constant Value: 0

### &#x20;USER\_CANCELED <a href="#id-en-purchaseclient.responsecode-user_canceled" id="id-en-purchaseclient.responsecode-user_canceled"></a>

int USER\_CANCELED\
The payment has been canceled.\
Constant Value: 1

### &#x20;RESULT\_SERVICE\_UNAVAILABLE <a href="#id-en-purchaseclient.responsecode-result_service_unavailable" id="id-en-purchaseclient.responsecode-result_service_unavailable"></a>

int RESULT\_SERVICE\_UNAVAILABLE\
A terminal or server network error has occurred.\
Constant Value: 2

### &#x20;RESULT\_BILLING\_UNAVAILABLE <a href="#id-en-purchaseclient.responsecode-result_billing_unavailable" id="id-en-purchaseclient.responsecode-result_billing_unavailable"></a>

int RESULT\_BILLING\_UNAVAILABLE\
An error has occurred during the purchase process.\
Constant Value: 3

### &#x20;RESULT\_ITEM\_UNAVAILABLE <a href="#id-en-purchaseclient.responsecode-result_item_unavailable" id="id-en-purchaseclient.responsecode-result_item_unavailable"></a>

int RESULT\_ITEM\_UNAVAILABLE\
The product is not on sale and/or cannot be purchased.\
Constant Value: 4

### &#x20;RESULT\_DEVELOPER\_ERROR <a href="#id-en-purchaseclient.responsecode-result_developer_error" id="id-en-purchaseclient.responsecode-result_developer_error"></a>

int RESULT\_DEVELOPER\_ERROR\
This is an invalid request.\
Constant Value: 5

### &#x20;RESULT\_ERROR <a href="#id-en-purchaseclient.responsecode-result_error" id="id-en-purchaseclient.responsecode-result_error"></a>

int RESULT\_ERROR\
An undefined error has occurred.\
Constant Value: 6

### &#x20;RESULT\_ITEM\_ALREADY\_OWNED <a href="#id-en-purchaseclient.responsecode-result_item_already_owned" id="id-en-purchaseclient.responsecode-result_item_already_owned"></a>

int RESULT\_ITEM\_ALREADY\_OWNED\
You already own this item.\
Constant Value: 7

### &#x20;RESULT\_ITEM\_NOT\_OWNED <a href="#id-en-purchaseclient.responsecode-result_item_not_owned" id="id-en-purchaseclient.responsecode-result_item_not_owned"></a>

int RESULT\_ITEM\_NOT\_OWNED\
This item cannot be used because you do not own it.\
Constant Value: 8

### &#x20;RESULT\_FAIL <a href="#id-en-purchaseclient.responsecode-result_fail" id="id-en-purchaseclient.responsecode-result_fail"></a>

int RESULT\_FAIL\
The payment has failed. Please check the payment method and availability then try again.\
Constant Value: 9

### &#x20;RESULT\_NEED\_LOGIN <a href="#id-en-purchaseclient.responsecode-result_need_login" id="id-en-purchaseclient.responsecode-result_need_login"></a>

int RESULT\_NEED\_LOGIN\
Store app login required.\
Constant Value: 10

### &#x20;RESULT\_NEED\_UPDATE <a href="#id-en-purchaseclient.responsecode-result_need_update" id="id-en-purchaseclient.responsecode-result_need_update"></a>

int RESULT\_NEED\_UPDATE\
Payment module update required.\
Constant Value: 11

### &#x20;RESULT\_SECURITY\_ERROR <a href="#id-en-purchaseclient.responsecode-result_security_error" id="id-en-purchaseclient.responsecode-result_security_error"></a>

int RESULT\_SECURITY\_ERROR\
Payment has been requested from an unrecognized app.\
Constant Value: 12

### &#x20;RESULT\_BLOCKED\_APP <a href="#id-en-purchaseclient.responsecode-result_blocked_app" id="id-en-purchaseclient.responsecode-result_blocked_app"></a>

int RESULT\_BLOCKED\_APP\
The request has been blocked.\
Constant Value: 13

### &#x20;RESULT\_NOT\_SUPPORT\_SANDBOX <a href="#id-en-purchaseclient.responsecode-result_not_support_sandbox" id="id-en-purchaseclient.responsecode-result_not_support_sandbox"></a>

int RESULT\_NOT\_SUPPORT\_SANDBOX\
This feature is not supported in the test environment.\
Constant Value: 14

### &#x20;ERROR\_DATA\_PARSING <a href="#id-en-purchaseclient.responsecode-error_data_parsing" id="id-en-purchaseclient.responsecode-error_data_parsing"></a>

int ERROR\_DATA\_PARSING\
A response data analysis error has occurred.\
Constant Value: 1001

### &#x20;ERROR\_SIGNATURE\_VERIFICATION <a href="#id-en-purchaseclient.responsecode-error_signature_verification" id="id-en-purchaseclient.responsecode-error_signature_verification"></a>

int ERROR\_SIGNATURE\_VERIFICATION\
A signature verification error in the purchase information has occurred.\
Constant Value: 1002

### &#x20;ERROR\_ILLEGAL\_ARGUMENT <a href="#id-en-purchaseclient.responsecode-error_illegal_argument" id="id-en-purchaseclient.responsecode-error_illegal_argument"></a>

int ERROR\_ILLEGAL\_ARGUMENT\
An invalid parameter has been entered.\
Constant Value: 1003

### &#x20;ERROR\_UNDEFINED\_CODE <a href="#id-en-purchaseclient.responsecode-error_undefined_code" id="id-en-purchaseclient.responsecode-error_undefined_code"></a>

int ERROR\_UNDEFINED\_CODE\
An undefined error has occurred.\
Constant Value: 1004

### &#x20;ERROR\_SIGNATURE\_NOT\_VALIDATION <a href="#id-en-purchaseclient.responsecode-error_signature_not_validation" id="id-en-purchaseclient.responsecode-error_signature_not_validation"></a>

int ERROR\_SIGNATURE\_NOT\_VALIDATION\
An invalid license key has been entered.\
Constant Value: 1005

### &#x20;ERROR\_UPDATE\_OR\_INSTALL <a href="#id-en-purchaseclient.responsecode-error_update_or_install" id="id-en-purchaseclient.responsecode-error_update_or_install"></a>

int ERROR\_UPDATE\_OR\_INSTALL\
Failed to install payment module.\
Constant Value: 1006

### &#x20;ERROR\_SERVICE\_DISCONNECTED <a href="#id-en-purchaseclient.responsecode-error_service_disconnected" id="id-en-purchaseclient.responsecode-error_service_disconnected"></a>

int ERROR\_SERVICE\_DISCONNECTED\
The connection with the payment module has been lost.\
Constant Value: 1007

### &#x20;ERROR\_FEATURE\_NOT\_SUPPORTED <a href="#id-en-purchaseclient.responsecode-error_feature_not_supported" id="id-en-purchaseclient.responsecode-error_feature_not_supported"></a>

int ERROR\_FEATURE\_NOT\_SUPPORTED\
This function is not supported.\
Constant Value: 1008

### &#x20;ERROR\_SERVICE\_TIMEOUT <a href="#id-en-purchaseclient.responsecode-error_service_timeout" id="id-en-purchaseclient.responsecode-error_service_timeout"></a>

int ERROR\_SERVICE\_TIMEOUT\
Communication with the service has timed out.\
Constant Value: 1009

### &#x20;ERROR\_CLIENT\_NOT\_ENABLED <a href="#id-en-purchaseclient.responsecode-error_client_not_enabled" id="id-en-purchaseclient.responsecode-error_client_not_enabled"></a>

int ERROR\_CLIENT\_NOT\_ENABLED\
Unable to bind with the service app.\
Constant Value: 1010

### &#x20;RESULT\_EMERGENY\_ERROR <a href="#id-en-purchaseclient.responsecode-result_emergeny_error" id="id-en-purchaseclient.responsecode-result_emergeny_error"></a>

int RESULT\_EMERGENY\_ERROR\
The server is under maintenance.\
Constant Value: 99999
