目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

ID Error Message
1001930000 The operation was canceled by the user.
1001930001 Pay failed.
1001930002 The transaction has been processed.
1001930003 Withhold failed.
1001930010 Duplicate request.
1001930011 Network connection error.
1014900000 The operation was canceled by the user.
1014900001 Payment failed.
1014900002 The transaction has been processed.
1014900003 Duplicate request.
1014900004 Network connection error.
1014900005 The payment environment is not ready.
1020100000 The application does not have the required capability.
1020100001 The user did not accept the agreement.
1020100002 The user canceled the operation.
1020100003 The pre-verify ID is invalid.
1020100004 The network is unavailable.
1020100005 System internal error.
1020100006 The camera permission is not granted.
1020100007 The liveness detection failed.
1020100008 The app ID does not match.
1020100009 The user ID does not match.
1022830000 The operation was canceled by the user.
1022830001 Pay failed.
1022830002 The payInfo invalid. Possible causes: 1.Data format is not json string; 2.Mandatory parameters are left unspecified.
1019200001 System internal error.
1019200002 Network connection error.
1019200003 Trade amount is invalid.

1001930000 Operation Canceled by User

Error Message

The operation was canceled by the user.

Error Description

The user canceled the operation.

Possible Causes

The user cancels and exits during the payment or contract signing process.

Solution

Notify the user to cancel the related operation.

1001930001 Payment Failed

Error Message

Pay failed.

Error Description

Payment failed.

Possible Causes

  1. The format of the input parameter orderStr is incorrect, the value of prepayId is incorrect, or the corresponding order does not exist.

  2. The authId and public/private key do not match, and the signature is incorrect.

Solution

  1. Check whether orderStr is a JSON string and whether the field types and values in orderStr are correct.

  2. For details, see Preparing Certificates and Signing Rules.

1001930002 Transaction Processed

Error Message

The transaction has been processed.

Error Description

The transaction has been processed.

Possible Causes

  1. The checkout screen is started using the same orderStr.

  2. The checkout screen has been started but the payment is not complete. The checkout screen is started again.

Solution

  1. Check whether the checkout screen is repeatedly started.

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

1001930003 Contract Signing Failed

Error Message

Withhold failed.

Error Description

The contract signing fails.

Possible Causes

  1. The input parameter contractStr is incorrect.

  2. The pre-signing number is incorrect.

Solution

  1. Check whether contractStr is a JSON string and whether the field type and value in the string are correct.

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

1001930010 Duplicate Request

Error Message

Duplicate request.

Error Description

Duplicate request.

Possible Causes

The API is called too frequently.

Solution

  1. You are advised not to call the API again immediately after it is called. Add a delay processing mechanism.

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

1001930011 Network Connection Error

Error Message

Network connection error.

Error Description

The network is abnormal.

Possible Causes

The user has no network signal, or the network is unstable.

Solution

Display a message to users, asking them to check the network.

1014900000 Operation Canceled by User

Error Message

The operation was canceled by the user.

Error Description

The user canceled the operation.

Possible Causes

A cancelation operation is performed during the payment.

Solution

Notify the user that the order is canceled.

1014900001 Payment Failed

Error Message

Payment failed.

Error Description

Payment failed.

Possible Causes

The format of the input parameter orderInfo is incorrect.

Solution

  1. Verify that the format and content of the orderInfo parameter are correct.

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

1014900002 Transaction Processed

Error Message

The transaction has been processed.

Error Description

The transaction has been processed.

Possible Causes

The same order number is used for placing orders.

Solution

Query the transaction order, check the order status, and use the new order number for the transaction.

1014900003 Duplicate Request

Error Message

Duplicate request.

Error Description

Duplicate request.

Possible Causes

The same request is initiated within a short period of time.

Solution

  1. Try again later.

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

1014900004 Network Connection Error

Error Message

Network connection error.

Error Description

The network is abnormal.

Possible Causes

The user has no network signal, or the network is unstable.

Solution

Display a message to users, asking them to check the network.

1014900005 Payment Environment Initialization Not Completed

Error Message

The payment environment is not ready.

Error Description

The payment environment initialization is not completed.

Possible Causes

The wallet version is too old, or the wallet is not installed. The earliest version required is 1.0.8.305.

Solution

  1. Install or update the wallet.

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

1020100000 Required Services Not Enabled for App

Error Message

The application does not have the required capability.

Error Description

The required services are not enabled for the app.

Possible Causes

  1. The user has not enabled related services in AppGallery Connect.

  2. The profile file is incorrectly configured.

Solution

  1. Sign in to AppGallery Connect and enable the services. For details, please refer to Enabling the User Identity Verification Service Permission.

  2. Check whether the profile configuration is correct. For details, please refer to information about how to request a debug certificate and debug profile file.

1020100001 User Not Agree

Error Message

The user did not accept the agreement.

Error Description

The user does not accept the agreement.

Possible Causes

The user does not accept the user agreement of Payment Kit when using the service for the first time.

Solution

The app prompts the user to accept the agreement as required.

1020100002 Operation Canceled by User

Error Message

The user canceled the operation.

Error Description

The user canceled the operation.

Possible Causes

The user cancels and exits during the verification or authorization process.

Solution

Notify the user to cancel the related operation.

1020100003 Invalid Pre-verification ID

Error Message

The pre-verify ID is invalid.

Error Description

The pre-verification ID is invalid.

Possible Causes

The passed preVerifyId parameter is incorrect or invalid.

Solution

  1. Ensure that preVerifyId is correct.

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

1020100004 Network Unavailable

Error Message

The network is unavailable.

Error Description

The network is unavailable.

Possible Causes

The user has no network signal, or the network is unstable.

Solution

Display a message to users, asking them to check the network.

1020100005 System Error

Error Message

System internal error.

Error Description

A system error occurs.

Possible Causes

An unnecessarily perceived internal error occurs.

Solution

  1. Prompt the user to try again later and wait for the system to rectify the fault.

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

1020100006 Camera Permission Not Granted

Error Message

The camera permission is not granted.

Error Description

The camera permission has not been granted.

Possible Causes

The app does not have the camera permission.

Solution

  1. Apply for the camera permission.

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

1020100007 Liveness Detection Failed

Error Message

The liveness detection failed.

Error Description

Liveness detection failed.

Possible Causes

The liveness detection failed, including the failure due to detection timeout or other exceptions.

Solution

  1. Prompt the user to try again later.

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

1020100008 appID Mismatch

Error Message

The app ID does not match.

Error Description

The app ID does not match.

Possible Causes

The app ID of the current app does not match the client ID used for pre-verification.

Solution

  1. Check whether the client ID passed by the pre-verification API is correct.

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

1020100009 User ID Mismatch

Error Message

The user ID does not match.

Error Description

The user ID does not match.

Possible Causes

The UID of the current user does not match the OpenID passed during pre-verification.

Solution

  1. Check whether the OpenID passed by the pre-verification request API is correct.

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

1022830000 Operation Canceled by User

Error Message

The operation was canceled by the user.

Error Description

The user canceled the operation.

Possible Causes

A cancelation operation is performed during the payment.

Solution

Notify the user to cancel the related operation.

1022830001 Payment Failed

Error Message

Pay failed.

Error Description

Payment failed.

Possible Causes

  1. The third-party payment API fails to be called.

  2. The system processing is abnormal.

Solution

  1. Check whether the field type and value in payInfo are correct. To determine the specific cause of the third-party payment API call failure, contact the corresponding third-party payment support personnel for fault locating.

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

1022830002 Invalid Payment Information

Error Message

The payInfo invalid. Possible causes: 1.Data format is not json string; 2.Mandatory parameters are left unspecified.

Error Description

The payment information is invalid.

Possible Causes

  1. The format or content of the input parameter payInfo is incorrect, or a mandatory parameter is not passed.

Solution

  1. Check whether payInfo is a JSON string and whether the field types and values in payInfo are correct.

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

1019200001 System Error

Error Message

System internal error.

Error Description

A system error occurs.

Possible Causes

An unnecessarily perceived internal error occurs.

Solution

  1. Prompt the user to try again later and wait for the system to rectify the fault.

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

1019200002 Network Unavailable

Error Message

Network connection error.

Error Description

The network is unavailable.

Possible Causes

The user has no network signal, or the network is unstable.

Solution

Display a message to users, asking them to check the network.

1019200003 Invalid Order Amount

Error Message

Trade amount is invalid.

Error Description

The order amount is invalid.

Possible Causes

The value of tradeOrderAmount is incorrect.

Solution

Check whether the input parameter tradeOrderAmount is correct.

1019200005 Invalid Merchant Certificate ID

Error Message

AuthId is invalid.

Error Description

The merchant certificate ID is invalid.

Possible Causes

The value of authId is invalid.

Solution

Check whether the input parameter authId is valid.

1019200006 Invalid Signature

Error Message

Sign is invalid.

Error Description

The signature is invalid.

Possible Causes

The value of sign is invalid.

Solution

Check whether the input parameter sign is valid.

1019200007 Invalid Order Context

Error Message

OrderContext is invalid.

Error Description

The order context is invalid.

Possible Causes

The value of orderContext is invalid.

Solution

Check whether the input parameter orderContext is valid.

1019200008 HUAWEI ID Not Signed In

Error Message

The HUAWEI ID is not signed in.

Error 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 a HUAWEI ID.

1019200009 User Does Not Accept Agreements

Error Message

The user did not accept the agreement.

Error Description

The user does not accept the Huawei Pay user agreement.

Possible Causes

The user does not accept the Huawei Pay user agreement when using the device for the first time.

Solution

The app should prompt the user to accept the Huawei Pay user agreement as required.

1019200010 Invalid Merchant ID

Error Message

Merchant no is invalid.

Error Description

The merchant ID is invalid.

Possible Causes

The value of mercNo is invalid.

Solution

Check whether the input parameter mercNo is valid.