JSAPI Flowchart

Key Steps:
Step 2Merchant mini-program initiates the order and receives parameters for payment invocation.Step 9Merchant mini-program uses the parameters received from the order to invoke WeChat SDK's payment method for initiating WeChat Pay.Step 12After the payment is completed, the merchant receives an asynchronous notification of the payment result. If not received, manual querying is required.
Alipay

Key Steps:
Step 1Merchant mini-program initiates the order and receives parameters for payment invocation.Step 6Merchant mini-program uses the parameters received from the order to invoke Alipay SDK's payment method for initiating Alipay.Step 9After the payment is completed, the merchant receives an asynchronous notification of the payment result. If not received, manual querying is required.
