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, the Query Order operation under the WeChat Pay resource allows users to query the status of a payment order using either the WeChat Pay transaction ID or the merchant's order number.

This operation is beneficial in scenarios where you need to verify the payment status of an order processed through WeChat Pay, such as confirming successful payments before fulfilling orders or reconciling transactions in your system.

Practical example:
After a customer completes a payment via WeChat Pay on your e-commerce platform, you can use this node operation to check if the payment was successful by querying the order status with the transaction ID or your internal order number.

Properties

Name Meaning
Transaction ID The unique transaction ID assigned by WeChat Pay for the payment.
Out Trade No The merchant's own order number used to identify the payment order.

Output

The output is a JSON object containing the response from the WeChat Pay API about the queried order. This typically includes details such as:

  • Order status (e.g., success, pending, closed)
  • Payment amount
  • Transaction timestamps
  • Buyer information
  • Other metadata related to the payment order

The exact structure depends on the WeChat Pay API response but generally provides comprehensive information about the queried order.

The node does not output binary data for this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external N8N Tools API service, which acts as a proxy/validation layer for WeChat API calls.
  • Properly configured credentials for accessing WeChat Pay APIs are necessary.
  • The node uses an internal helper class (WeChatApi) to interact with WeChat services.

Troubleshooting

  • Invalid subscription or API key error:
    If the node throws an error indicating invalid subscription or API key, verify that your API key credential is correctly set up and has the required permissions.

  • Missing transaction identifiers:
    Ensure that at least one of Transaction ID or Out Trade No is provided; otherwise, the query may fail or return incomplete results.

  • API request failures:
    Network issues or incorrect credentials can cause HTTP request failures. Check connectivity and credential validity.

  • Unsupported operation error:
    This node supports specific operations per resource. Using unsupported operations will result in errors.

Links and References

Discussion