Value | Result Code | Description | Solution |
|---|---|---|---|
0 | STATUS_SUCCESS | Success. | If this result code is returned for a purchase request, you are advised to use the obtainOwnedPurchases API to check whether the user has purchased the product. |
–1 | STATUS_FAILURE | Common error code upon a failure. | If this result code is returned for a purchase request, you are advised to use the obtainOwnedPurchases API to check whether the user has purchased the product. |
60000 | ORDER_STATE_CANCEL | The user cancels the payment. | Record the order ID and execute the payment process when the user performs the payment operation again. |
60001 | ORDER_STATE_PARAM_ERROR | Parameter error (including no parameter). | Check whether request parameters are missing and whether the parameter format is correct. |
60002 | ORDER_STATE_IAP_NOT_ACTIVATED | The IAP service is not enabled. | To use HUAWEI IAP, you first need to enable the IAP service and also set IAP parameters. |
60003 | ORDER_STATE_PRODUCT_INVALID | Incorrect product information. | 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. NOTE: This error may also occur if the country or region of the HUAWEI ID signed in on a device is not supported by IAP. Those supported ones are listed in Supported Countries/Regions. You can sign to AppGallery Connect and check the countries or regions where the product is available. |
60004 | ORDER_STATE_CALLS_FREQUENT | Too frequent API calls. | Control the API call frequency. |
60005 | ORDER_STATE_NET_ERROR | Network connection exception. | Display a message to users, asking them to check the network. |
60006 | ORDER_STATE_PMS_TYPE_NOT_MATCH | The found product type is inconsistent with that defined in the PMS. | Sign in to AppGallery Connect. Click My apps, select an app, and go to Operate > Products > Product Management. In the product list, check the actual product type. |
60007 | ORDER_STATE_PRODUCT_COUNTRY_NOT_SUPPORTED | The app to which the product belongs is not released in a specified location. | 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. |
60020 | ORDER_VR_UNINSTALL_ERROR | The VR APK is not installed. | This error code is returned in the VR payment scenario. Install the VR APK first. |
60050 | ORDER_HWID_NOT_LOGIN | The HUAWEI ID is not signed in. | Display a message asking the user to sign in with HUAWEI ID. You can also use other APIs to call the isEnvReady API to ask users to sign in. |
60051 | ORDER_PRODUCT_OWNED | A user failed to purchase a product because the user already owns the product. | Use the obtainOwnedPurchases API to check whether the user has purchased the product.
|
60052 | ORDER_PRODUCT_NOT_OWNED | A user failed to consume a product because the user does not own the product. | Use the obtainOwnedPurchases API to check whether the user has purchased the product. |
60053 | ORDER_PRODUCT_CONSUMED | The product has been consumed and cannot be consumed again. | Use the obtainOwnedPurchaseRecord API to check whether the product has a consumption record. |
60054 | ORDER_ACCOUNT_AREA_NOT_SUPPORTED | The country or region of the signed-in HUAWEI ID does not support IAP. | This error code may be returned when the country or region of the signed-in HUAWEI ID is one of Supported Countries/Regions, but there is a service error. In this case, try calling the API again to resolve this issue. |
60056 | ORDER_HIGH_RISK_OPERATIONS | The user triggers risk control, and the transaction is rejected. | You are advised to use a sandbox environment (which will not cause actual payments), or change the payment method. |
700111 | KIT_UPGRADE_FAIL | HMS Core (APK) failed to be updated. | This error code will be returned when the version of HMS Core (APK) on a wearable is earlier than 6.3.0. In this case, you are advised to display a message to your user, asking them to search HUAWEI AppGallery for HMS Core and then update it. |
If you want to check more error codes, go to HMS Core SDK Framework Result Codes.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.