Published at: 2025-10-31

Online Payment Configuration (Exclusive to Mini Programs)


1. Linking Corporate Wallet with WeChat Pay and Alipay

When Downstream Distributors place orders requiring online payment, you can bind your corporate WeChat Pay and Alipay merchant accounts in the Corporate Wallet application. By default, each company can only bind one WeChat Pay and one Alipay account.

Locate the Corporate Wallet in More Apps and follow the prompts to bind your WeChat Pay and Alipay merchant accounts.

Note: Both WeChat Pay and Alipay charge transaction fees. Refer to their official documentation for details.

picture coming soon:

2. Enabling Mini Program Hosting

To enable online payments, your enterprise must upgrade to a dedicated mini program (WeChat Pay requires the mini program owner and payment account holder to match).

For detailed instructions on enabling mini program hosting, refer to:
Dedicated Mini Program

Note: If you only need QR code payments or online payments on the Web, you can skip this step.

3. Configuration Guide

3.1 Order-Based Online Payment

3.1.1 Standard Configuration Steps

1. Enable the feature:
Activate online payments in the Admin Console:
Admin Console > Sales Transaction Management > Transaction Document Configuration > Enable Online Payment

picture coming soon:

2. Configure layout:
After enabling, expose the Payment Method field in the Sales Order create/edit page layout:

picture coming soon:

To display the Online Payment button in the order list, configure it in the Sales Order list page (PC layout):

picture coming soon:

Reference implementation:
After enabling online payments, click Online Payment when creating orders to initiate the payment component:

picture coming soon:

Payment Collection and transaction records are automatically generated.

3.1.2 Customizing Online Payment Buttons and Conditions

Location: Admin Console > Preset Objects > Sales Order > Buttons > Online Payment button

picture coming soon:

You can define button display conditions (standard PaaS capability):

picture coming soon:

3.2 Payment Collection-Based Online Payment

After successfully binding WeChat Pay or Alipay (for 1&N mode: WeChat mini programs only support WeChat Pay, while Web supports both), enable online payments in Payment Collection.

This adds a Payment Method field to Payment Collection objects (dependent on new Payment Collection) and creates Online Payment and QR Code Payment buttons. When creating Payment Collection, select online payment.

picture coming soon:

On Web or mini programs, select Online Payment as the payment method. The system redirects to the payment page and generates Payment Collection upon completion.

Online payments are supported in order lists, order details, and standalone Payment Collection creation.

picture coming soon:

4. Online Top-Up

For Prepaid Deposit or advance payment scenarios, create Payment Collection with Online Payment as the payment method and select Prepaid Deposit as the purpose:

picture coming soon:

Submit Feedback