Skip to main content

Chapter 1: Setting Triggering Methods

The triggering method is the starting point of the workflow. This chapter will guide you on how to trigger the workflow upon receiving a WeChat Pay event.

Step 1: Prepare WeChat Pay Merchant ID, Certificate, and APIv3 Key

Step 2: Configure Trigger Node

Configure the "upon receiving a WeChat Pay event" trigger node and save. This includes:

  • Receive Push URL: Automatically generated, used to receive message or event pushes from the WeChat server.
  • WeChat Pay credentials: Use the information obtained in Step 1 to create and select the WeChat Pay account credentials.

Step 3: Debug Trigger Method

In this step, we will verify whether the trigger method is configured correctly.

Listening to Message Push

After completing Steps 1 and 2, go to the Debug - Message Push Listening panel and click the "Listen for Requests" button to start listening for WeChat Pay event pushes. Trigger methods include: Basic Order Placement and Request Refund. When calling the API, set the 'notify_url' parameter to the 'Debug URL'.

If the message or event push is received correctly, you can see the parsed result data:

Next Steps

Next, we will learn how to use conditional branches to determine event types and implement different business logic. Please proceed to Chapter 2: Implementing Conditional Judgments