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. |
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.
Error Message
Pay failed.
Error Description
Payment failed.
Possible Causes
The format of the input parameter orderStr is incorrect, the value of prepayId is incorrect, or the corresponding order does not exist.
The authId and public/private key do not match, and the signature is incorrect.
Solution
Check whether orderStr is a JSON string and whether the field types and values in orderStr are correct.
For details, see Preparing Certificates and Signing Rules.
Error Message
The transaction has been processed.
Error Description
The transaction has been processed.
Possible Causes
The checkout screen is started using the same orderStr.
The checkout screen has been started but the payment is not complete. The checkout screen is started again.
Solution
Check whether the checkout screen is repeatedly started.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
Withhold failed.
Error Description
The contract signing fails.
Possible Causes
The input parameter contractStr is incorrect.
The pre-signing number is incorrect.
Solution
Check whether contractStr is a JSON string and whether the field type and value in the string are correct.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
Duplicate request.
Error Description
Duplicate request.
Possible Causes
The API is called too frequently.
Solution
You are advised not to call the API again immediately after it is called. Add a delay processing mechanism.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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.
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.
Error Message
Payment failed.
Error Description
Payment failed.
Possible Causes
The format of the input parameter orderInfo is incorrect.
Solution
Verify that the format and content of the orderInfo parameter are correct.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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.
Error Message
Duplicate request.
Error Description
Duplicate request.
Possible Causes
The same request is initiated within a short period of time.
Solution
Try again later.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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.
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
Install or update the wallet.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
The application does not have the required capability.
Error Description
The required services are not enabled for the app.
Possible Causes
The user has not enabled related services in AppGallery Connect.
The profile file is incorrectly configured.
Solution
Sign in to AppGallery Connect and enable the services. For details, please refer to Enabling the User Identity Verification Service Permission.
Check whether the profile configuration is correct. For details, please refer to information about how to request a debug certificate and debug profile file.
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.
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.
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
Ensure that preVerifyId is correct.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
System internal error.
Error Description
A system error occurs.
Possible Causes
An unnecessarily perceived internal error occurs.
Solution
Prompt the user to try again later and wait for the system to rectify the fault.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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
Apply for the camera permission.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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
Prompt the user to try again later.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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
Check whether the client ID passed by the pre-verification API is correct.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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
Check whether the OpenID passed by the pre-verification request API is correct.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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.
Error Message
Pay failed.
Error Description
Payment failed.
Possible Causes
The third-party payment API fails to be called.
The system processing is abnormal.
Solution
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.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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
Solution
Check whether payInfo is a JSON string and whether the field types and values in payInfo are correct.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
System internal error.
Error Description
A system error occurs.
Possible Causes
An unnecessarily perceived internal error occurs.
Solution
Prompt the user to try again later and wait for the system to rectify the fault.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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.
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.
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.
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.
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.
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.