# PurchaseClient.ResponseCode

## PurchaseClient.ResponseCode <a href="#id-cn-purchaseclient.responsecode-purchaseclient.responsecode" id="id-cn-purchaseclient.responsecode-purchaseclient.responsecode"></a>

`public static @interface PurchaseClient.ResponseCode`\
`com.gaa.sdk.iap.PurchaseClient.ResponseCode`\
&#x20;\
SDK使用的响应代码

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

***

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

`int RESULT_OK`

成功

Constant Value: 0

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

`int USER_CANCELED`

支付已取消。

Constant Value: 1

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

`int RESULT_SERVICE_UNAVAILABLE`

终端或服务器网络发生错误。

Constant Value: 2

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

`int RESULT_BILLING_UNAVAILABLE`

购买处理过程中发生了错误。

Constant Value: 3

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

`int RESULT_ITEM_UNAVAILABLE`\
商品不在销售中或是不能购买的商品。\
Constant Value: 4

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

`int RESULT_DEVELOPER_ERROR`

请求无效。

Constant Value: 5

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

`int RESULT_ERROR`

发生了其他未定义的错误。

Constant Value: 6

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

`int RESULT_ITEM_ALREADY_OWNED`

您已拥有该item。

Constant Value: 7

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

`int RESULT_ITEM_NOT_OWNED`

您未拥有该item，因此不能消费。

Constant Value: 8

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

`int RESULT_FAIL`\
支付失败。 请确认是否可以支付及支付方式后重新支付。\
Constant Value: 9

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

`int RESULT_NEED_LOGIN`\
需要登录store应用软件。\
Constant Value: 10

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

`int RESULT_NEED_UPDATE`\
需要更新支付模块。\
Constant Value: 11

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

`int RESULT_SECURITY_ERROR`

非正常应用软件要求进行支付。

Constant Value: 12

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

`int RESULT_BLOCKED_APP`\
请求已被屏蔽。\
Constant Value: 13

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

`int RESULT_NOT_SUPPORT_SANDBOX`

这是测试环境中不支持的功能。

Constant Value: 14

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

`int ERROR_DATA_PARSING`\
响应数据分析出现错误。\
Constant Value: 1001

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

`int ERROR_SIGNATURE_VERIFICATION`

购买信息的签名验证发生错误。

Constant Value: 1002

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

`int ERROR_ILLEGAL_ARGUMENT`

输入了不正常的参数。

Constant Value: 1003

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

`int ERROR_UNDEFINED_CODE`

发生了未定义的错误。

Constant Value: 1004

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

`int ERROR_SIGNATURE_NOT_VALIDATION`

输入的许可密钥无效。

Constant Value: 1005

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

`int ERROR_UPDATE_OR_INSTALL`\
安装支付模块失败。\
Constant Value: 1006

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

`int ERROR_SERVICE_DISCONNECTED`

与支付模块的连接中断。

Constant Value: 1007

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

`int ERROR_FEATURE_NOT_SUPPORTED`

不支持的功能。

Constant Value: 1008

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

`int ERROR_SERVICE_TIMEOUT`

超过了与服务通信的时间。

Constant Value: 1009

### ERROR\_CLIENT\_NOT\_ENABLED <a href="#id-cn-purchaseclient.responsecode-error_client_not_enabled" id="id-cn-purchaseclient.responsecode-error_client_not_enabled"></a>

`int ERROR_CLIENT_NOT_ENABLED`

无法与服务应用软件绑定。

Constant Value: 1010

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

`int RESULT_EMERGENY_ERROR`

正在检查服务器。

Constant Value: 99999


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onestore-dev.gitbook.io/dev/chi/tools/billing/v21/references/annotations/purchaseclient.responsecode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
