> 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/old-version/v19/one-store-iap-reference/annotations/purchaseclient.responsecode.md).

# PurchaseClient.ResponseCode

```
public static @interface PurchaseClient.ResponseCode
```

```
com.gaa.sdk.iap.PurchaseClient.ResponseCode
```

```
```

Response codes to be used in SDK

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

***

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

```
int RESULT_OK
```

Success

Constant Value: 0

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

```
int USER_CANCELED
```

The billing is cancelled.

Constant Value: 1

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

```
int RESULT_SERVICE_UNAVAILABLE
```

An error occurred in the terminal or the server network.

Constant Value: 2

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

```
int RESULT_BILLING_UNAVAILABLE
```

An error occurred in the process of processing the purchase.

Constant Value: 3

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

```
int RESULT_ITEM_UNAVAILABLE
```

The in-app is not on sale or cannot be purchased.

Constant Value: 4

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

```
int RESULT_DEVELOPER_ERROR
```

The request is not valid.

Constant Value: 5

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

```
int RESULT_ERROR
```

Another undefined error occurred.

Constant Value: 6

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

```
int RESULT_ITEM_ALREADY_OWNED
```

You have already owned the item.

Constant Value: 7

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

```
int RESULT_ITEM_NOT_OWNED
```

You cannot consume the item because you do not have it.

Constant Value: 8

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

```
int RESULT_FAIL
```

The billing failed. Check the billing availability and billing method before making the billing again.

Constant Value: 9

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

```
int RESULT_NEED_LOGIN
```

The store app login is required.

Constant Value: 10

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

```
int RESULT_NEED_UPDATE
```

The billing module update is required.

Constant Value: 11

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

```
int RESULT_SECURITY_ERROR
```

The billing has been requested from an invalid app.

Constant Value: 12

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

```
int RESULT_BLOCKED_APP
```

The request has been blocked.

Constant Value: 13

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

```
int RESULT_NOT_SUPPORT_SANDBOX
```

The function is not supported in the test environment.

Constant Value: 14

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

```
int ERROR_DATA_PARSING
```

An error occurred in the response data parsing.

Constant Value: 1001

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

```
int ERROR_SIGNATURE_VERIFICATION
```

An error occurred in the signature review of the purchase information.

Constant Value: 1002

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

```
int ERROR_ILLEGAL_ARGUMENT
```

An invalid parameter is entered.

Constant Value: 1003

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

```
int ERROR_UNDEFINED_CODE
```

An undefined error occurred.

Constant Value: 1004

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

```
int ERROR_SIGNATURE_NOT_VALIDATION
```

The entered license key is not valid.

Constant Value: 1005

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

```
int ERROR_UPDATE_OR_INSTALL
```

The billing module installation has failed.&#x20;

Constant Value: 1006

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

```
int ERROR_SERVICE_DISCONNECTED
```

The billing module connection has been cut.

Constant Value: 1007

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

```
int ERROR_FEATURE_NOT_SUPPORTED
```

The function is not supported.

Constant Value: 1008

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

```
int ERROR_SERVICE_TIMEOUT
```

The communication time with the service has exceeded.

Constant Value: 1009

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

```
int RESULT_EMERGENY_ERROR
```

The server is under maintenance.

Constant Value: 99999
