WeChat Enhanced icon

WeChat Enhanced

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

Overview

The "WeChat Enhanced" node integrates multiple WeChat services, including Mini Programs, Official Accounts, WeChat Pay, and others. Specifically, for the WeChat Pay resource with the Close Order operation, this node allows users to close an existing payment order by providing the merchant's order number.

This operation is useful in scenarios where a payment order needs to be canceled or invalidated before it is completed, such as when a customer cancels their purchase or if the order was created erroneously.

Practical example:
A merchant uses this node to close a pending payment order that the customer decided not to proceed with, ensuring no further payment processing occurs for that order.

Properties

Name Meaning
Out Trade No Merchant order number (string)

This property identifies the specific order to close by its unique merchant order number.

Output

The output of the Close Order operation is a JSON object containing the response from the WeChat Pay API regarding the closure request. This typically includes status information about whether the order was successfully closed or if there were any errors.

No binary data output is involved in this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external N8N Tools API service used for validation.
  • The node depends on the bundled wechat-api module which handles communication with WeChat services.
  • Proper configuration of credentials for WeChat Pay access is necessary.
  • Network connectivity to WeChat Pay endpoints and the N8N Tools API is required.

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 is correctly configured and active.
  • Unsupported operation error: Ensure the selected operation matches the supported operations for the WeChat Pay resource.
  • Missing or incorrect Out Trade No: The merchant order number must be provided and valid; otherwise, the API call will fail.
  • Network issues: Failures in HTTP requests may occur due to network problems; check connectivity and firewall settings.
  • API rate limits or permissions: If the WeChat Pay API returns permission or quota errors, verify account permissions and usage limits.

Links and References

Discussion