目录

Service Rule Description

Before integrating unified checkout, you need to enable the corresponding product. For details, please refer to Product Enabling.

The unified checkout screen of Payment Kit can contain multiple payment methods, which can be flexibly combined. Based on different fund processing methods, the unified checkout screen supports the following payment modes.

Payment Mode Fund Processing Description
Huawei Pay Huawei Pay processes fund for all payment methods. Huawei Pay and third-party payment methods are supported on the checkout screen. Huawei Pay processes fund for both payment methods.
Mixed payment Huawei Pay processes fund for some payment methods. Huawei Pay and third-party payment methods are supported on the checkout screen. Huawei Pay processes fund for the Huawei Pay payment method, and third-party payment platforms process fund for the third-party payment methods.
External payment Huawei Pay does not process fund for the payment method. Only third-party payment methods are supported on the checkout screen. Third-party payment platforms process fund for the third-party payment methods.

Product Enabling and Configuration

To integrate mixed payment or external payment, you need to communicate with the Huawei Pay service side (click here for cooperation consultation) and provide the following information for the Huawei Pay service side to add payment mode configurations. The configuration items are as follows.

Configuration Item Mandatory Description
Atomic service/App name Yes Name of the app associated with the app ID.
AppID Yes App ID. (To obtain the app ID, sign in to AppGallery Connect, click Development and services, find the desired project in the project list, and obtain the app ID in the App information area on the Project settings > General information page.)
Checkout mode Yes

Payment mode on the checkout screen. (If no third-party payment is configured for the merchant, the default mode is Huawei Pay.)

2: mixed payment mode (Some transactions are processed through Huawei Pay, and some through external third-party payment channels.)

3: external payment mode (All transactions are processed through external third-party payment channels.)

Enabling status Yes

Indicates whether to enable the third-party payment configuration requested by the app.

- Enabled (default)

- Disabled

Payment method name Yes Configuration item for the third-party payment method. Payment method name displayed on the checkout screen.
Payment method code No Configuration item for the third-party payment method. Payment method code, which is required when the payment method is not WeChat Pay or Alipay.
Checkout screen launch mode Yes

Configuration item for the third-party payment method. Indicates whether to launch the checkout screen in SDK mode.

- Yes: API-based redirection to the third-party check screen

- No: URL-based redirection to the third-party checkout screen

Note: The method of launching the third-party checkout screen varies with the configuration. Currently, the third-party checkout screen can be launched based on the API. For details about the supported payment methods, please refer to PayMethod.

Payment method redirection path No

Configuration item for the third-party payment method. This configuration item is mandatory when URL-based redirection to the third-party checkout screen is used.

The redirection links for common payment methods are as follows (for reference):

- Alipay: https://mclient.alipay.com

- WeChat Pay: https://wx.tenpay.com

Payment method deep link No

Configuration item for the third-party payment method. This configuration item is mandatory when URL-based redirection to the third-party checkout screen is used.

The redirection deep links for common payment methods are as follows (for reference):

- Alipay: alipays://platformapi

- WeChat Pay: weixin://wap/pay

Payment method referer link No Configuration item for the third-party payment method. Set this configuration item based on the payment method. If this configuration item is not involved, leave it empty. This configuration item is mandatory in the H5 WeChat Pay scenario. The value is the link registered and configured by the merchant when applying for enabling WeChat Pay H5 payment on the WeChat Pay merchant management platform.
Payment method logo Yes Configuration item for the third-party payment method. The .png, .jpg, .jpeg, .gif, .webp, and .bmp formats are supported.

You can fill in the configurations by referring to the following table.

Constraints

Device type: Huawei phone

HarmonyOS version: HarmonyOS 5.0.2(14) or later

HarmonyOS SDK version: HarmonyOS 5.0.2(14) or later