Result Codes

Value

Description

Solution

0

Success.

-

5

The parameters passed to the API are invalid. This error may also indicate that an agreement is not signed or parameters are not set correctly for the in-app purchase billing in HUAWEI IAP, or the required permission is not in the list.

  1. Check whether the request parameters are correctly set.
  2. Check whether other relevant settings are correctly defined.

6

A critical error occurs during API operations.

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

8

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

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

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

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.

搜索
请输入您想要搜索的关键词