# 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
