目录

Result Codes

Value

MSG

Description

Solution

0

IAP_RESPONSE_RESULT_OK

Success.

-

5

IAP_APP_IAP_NOT_ACTIVATED

The IAP service is not enabled.

Enable the IAP service in AppGallery Connect.

6

IAP_RESPONSE_RESULT_ERROR

A critical error occurs during API operations.

Fix the error based on the error information in the response.

8

IAP_RESPONSE_RESULT_ITEM_NOT_OWNED

A user failed to consume or confirm a product because the user does not own the product.

First, make sure that consuming or confirming a product is performed for a user only when the user has successfully purchased it, that is, already owned the product. Then, you also need to ensure that the input parameters in the API call request are correct.

9

IAP_RESPONSE_RESULT_ITEM_CONSUMED_OR_ACKNED

The product cannot be consumed or confirmed because it has been consumed or confirmed.

Check why repeated consumption or confirmation occurs and further optimize the project logic. If process confirmation and suggestions are required, contact Huawei technical support.

11

IAP_USER_ACCOUNT_INVALID

The user account is abnormal. For example, the user has been deregistered.

Use another account or register a new account if no other account is available.

12

IAP_RECORD_NOT_EXIST

The order does not exist. The order in this query may be a historical order.

Token verification is unnecessary for a historical order under normal circumstances, and HUAWEI IAP only allows for token verification for the latest order of a product. Check your integration process to make sure it complies with that described in the development guide.

If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.