WeChat Enhanced icon

WeChat Enhanced

WeChat Enhanced Node - Suporte completo para Mini Programs, Official Accounts, WeChat Pay e WeChat Work

Overview

The WeChat Pay - Create Order operation allows users to create a payment order through the WeChat Pay service. This node action is useful for automating payment processing workflows where an order needs to be generated and submitted to WeChat Pay for subsequent payment handling.

Typical use cases include:

  • E-commerce platforms generating payment orders when customers place purchases.
  • Subscription services creating recurring payment orders.
  • Any business process requiring integration with WeChat Pay to initiate payments programmatically.

For example, after collecting order details in your workflow, you can pass the order data JSON to this node to create a corresponding WeChat Pay order, which then returns the order confirmation and payment details.

Properties

Name Meaning
Order Data The order details in JSON format required by WeChat Pay to create the payment order. This includes all necessary fields such as amount, currency, description, and other payment parameters as defined by WeChat Pay's API.

Output

The node outputs a JSON object representing the response from the WeChat Pay API after attempting to create the order. This typically includes:

  • Order identifiers (e.g., transaction ID, merchant order number).
  • Status information about the order creation.
  • Payment URLs or tokens needed to complete the payment.
  • Any error messages if the order creation failed.

No binary data output is produced by this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external "N8N Tools API" service that acts as a proxy/validation layer.
  • Requires credentials for authenticating with WeChat Pay via the integrated API client.
  • The node internally uses a helper class (WeChatApi) to interact with WeChat Pay endpoints.
  • Proper configuration of these credentials within n8n is necessary before using this node.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential configured in n8n is correct and active.
  • Malformed order data: Ensure the JSON provided in the "Order Data" property strictly follows WeChat Pay's expected schema. Invalid or incomplete JSON will cause the API call to fail.
  • Network or API errors: Temporary network issues or WeChat Pay service downtime may cause failures. Retrying the operation later or checking connectivity can help.
  • Permission issues: Make sure the API credentials have sufficient permissions to create orders on the WeChat Pay account.

Links and References

Discussion