目录

ArkTS API Error Codes

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.

1001860000 Payment Canceled by a User

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.

1001860001 Internal Error

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.

1001860002 App Not Authorized to Call the API

Message

The application is not authorized.

Description

The app is not authorized to call the API.

Possible causes

  1. The app signature or identity information is incorrectly configured.
  2. The app does not have the IAP service enabled.

Solution

  1. Check the relevant configurations by referring to Configuring App Identity Information and Adding a Public Key Fingerprint.
  2. Check whether the automatic signing method is used by referring to Configuring Signing Information. Ensure that the manual signing method is used.
  3. Perform the task of Enabling IAP Kit for the app that needs to use IAP Kit.

1001860003 Invalid Product Information

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.

1001860004 API Calls Too Frequent

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.

1001860005 Network Connection Error

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.

1001860007 App Not Released in the Specified Location

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.

1001860050 HUAWEI ID Not Signed In

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.

1001860051 Purchase Failure Because the User Already Owns the Product

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.

1001860052 Delivery Failure Because the User Does Not Own 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.

1001860053 Repeated Delivery

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.

1001860054 Service Area Unsupported by IAP Kit

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.

1001860056 Transaction Rejected

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.

1001860057 App Without a Debug Signature

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.

1001860058 HUAWEI ID Not a Test Account

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.

1001860059 Invalid Special Offer Information

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.

1001860060 Invalid Signature Information

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.