This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.
If the error persists, go to Submit ticket online, select the relevant topic, and submit your ticket. Huawei will get back to you as soon as possible.
Message
The operation was canceled by the user.
Description
A user cancels the payment.
Possible causes
A cancelation operation is performed during the payment.
Solution
Record the order ID and execute the payment process when the user performs the payment operation again.
Message
System internal error.
Description
Internal system error.
Possible causes
An error is reported during program running.
Solution
If this result code is returned upon a purchase request, you are advised to use the queryPurchases API to check whether the user has purchased the product.
Message
The application is not authorized.
Description
The app is not authorized to call the API.
Possible causes
Solution
Message
Invalid product information.
Description
Invalid product information.
Possible causes
The passed product ID or type is incorrect.
Solution
Sign in to AppGallery Connect. Click My apps, select an app, and go to Operate > Products > Product Management. In the product list, check whether the product exists or whether all its mandatory information is available.
Message
Too frequent API calls.
Description
API calls are too frequent.
Possible causes
The API call interval is too short.
Solution
Control the API call frequency. The current default interval for accessing this API is 5 seconds. In the future, IAP Kit may adjust the call frequency limit up or down as needed.
Message
Network connection error.
Description
Network connection error.
Possible causes
Check the network.
Solution
Display a message to users, asking them to check the network.
Message
The app to which the product belongs is not released in a specified location.
Description
The app to which the product belongs is not released in a specified location.
Possible causes
The app to which the product belongs is not released in a specified location.
Solution
Sign in to AppGallery Connect. Click My apps, select an app, and go to Distribute > Version information > Draft. Under Countries/Regions, check the countries or regions to which the app will be released.
Message
The HUAWEI ID is not signed in.
Description
The HUAWEI ID is not signed in.
Possible causes
The HUAWEI ID is not signed in.
Solution
Guide the user to sign in with HUAWEI ID.
Message
Failed to purchase a product because the user already owns the product.
Description
The purchase failed because the user already owns the product.
Possible causes
The product has already been purchased.
Solution
Use the queryPurchases API to check whether the user has purchased the product.
Message
The purchase cannot be finished because the user has not paid for it.
Description
The delivery failed because the user does not own the product.
Possible causes
The user has not purchased the product.
Solution
Use the queryPurchases API to check whether the user has purchased the product.
Message
The purchase has been finished and cannot be finished again.
Description
The product has been delivered. No more delivery is needed.
Possible causes
The product has been delivered. No more delivery is needed.
Solution
Use the queryPurchases API to check whether the product has a delivery acknowledgement record.
Message
The country or region of the signed-in HUAWEI ID does not support IAP.
Description
The country or region to which the signed-in HUAWEI ID belongs does not support IAP Kit.
Possible causes
The country or region to which the signed-in HUAWEI ID belongs does not support IAP Kit.
Solution
For HUAWEI IDs that is not in the Chinese mainland, it is recommended that the app set IAP functions to unavailable.
Message
The user is not allowed to make purchase.
Description
The transaction is rejected.
Possible causes
The transaction behavior triggers IAP Kit risk control.
Solution
Try again later or change the payment method.
Message
The app provision type is not debug.
Description
The app does not have a debug signature.
Possible causes
The app does not have a debug signature.
Solution
Follow the instructions here to build an app with a debug signature.
Message
The HUAWEI ID is not test account.
Description
The signed-in HUAWEI ID is not a test account.
Possible causes
The HUAWEI ID is not configured as a test account under Users and permissions in AppGallery Connect.
Solution
Configure a test account under Users and permissions in AppGallery Connect. For details, please refer to here.
Message
Invalid promotional offer id.
Description
Invalid special offer information.
Possible causes
No special offer is configured for the project when you add product information in AppGallery Connect.
Solution
You can use the queryProducts API to check whether there are special offers set for the product. For details, please refer to here.
Message
Invalid purchase signature.
Description
Invalid signature information.
Possible causes
The signature key or signature parameter is invalid, or the signature fails.
Solution
Handle the signature process by referring to here.