AI Agent Hub
Back to skills
WeChatPay Payment Integration Guide icon

WeChatPay Payment Integration Guide

Development Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @tencent-adm/wechatpay-payment-integration.

About this skill

Where WeChatPay integration usually gets stuck

Teams often do not lack API docs. They get stuck between product selection, merchant roles, field meanings, error codes, and pre-release checks. Payment issues span APIv3, callbacks, refunds, reconciliation, and security compliance, and writing code from memory can lead to wrong roles, failed order queries, refund anomalies, or production fund risk.

How the skill works

It focuses on domestic WeChatPay integration and requires resource sync and knowledge search before answering from official documentation. Core capabilities include:
- Product selection: match the payment product to the business scenario, role, and fund flow.
- Sample code: provide official request examples for curl, Java, and Go; for other languages, explicitly mark output as an AI reference implementation.
- Integration quality review: scan existing code with a quality checklist, product notes, and issue severity such as 🔴🟡🟠.
- Q&A and troubleshooting: act as the fallback path for field meanings, workflow questions, error codes, and order-status checks.

The workflow emphasizes search-before-answer: run knowledge search each turn, read the matching docs, and state when coverage is missing instead of inventing details.

Boundaries

It assumes domestic merchants and does not cover cross-border payments. Non-official language code must be reviewed by developers. It is useful for integration, debugging, and pre-release review, but it is not a substitute for business decisions, financial audit, or human security review.

Use Cases

  • Select the right WeChatPay product before launch based on merchant role and fund flow.
  • Retrieve official curl, Java, or Go samples and doc links while implementing payment APIs.
  • Diagnose query failures or error codes during integration and propose next troubleshooting steps.
  • Review production payment code before release and list security, compliance, and fund-flow risks.

Best For

  • Backend engineers implementing payment APIs and checking official curl, Java, or Go samples.
  • Payment owners reviewing fund-flow and security compliance before production release.
  • Integration testers debugging query failures, refund anomalies, and error-code meanings.
  • Business developers selecting the right WeChatPay product for merchant roles.