Loading...
Loading...
Unified entry for WeChat Pay-related issues, handling consultations related to WeChat Pay access, products, development, operations, and brand management. It provides product selection, official sample code, access quality assessment, Q&A and troubleshooting. Use when user mentions "WeChat Pay", "WeChat Collection", "JSAPI", "APP Payment", "H5 Payment", "Native Payment", "Scan Payment", "Payment Code", "Mini Program Payment", "Combined Order Payment", "Medical Insurance Payment", "WeChat Pay Score", "Profit Sharing", "Transfer", "Authorized Withholding", "Recurring Deduction", "Voucher", "Merchant Voucher", "Special Merchant Onboarding", "Service Provider", "sub_mchid", "APIv2", "APIv3", "Callback", "Signature", "Certificate", "Error Code", "OpenID", "Brand Management", "Brand Management Platform", "Brand Store", "Merchant Business Card", "Business Card Member", "Product Voucher", "Shake for Discounts", "Shake Discount", "Brand Onboarding", or asks to "recommend payment methods/product selection", "request interfaces or sample code", "conduct access code quality review/pre-launch check", "explain field meanings or interface rules", "troubleshoot errors/check orders/payment issues".
npx skill4agent add wechatpay-apiv3/wechatpay-skills wechatpay-payment-integration‼️ This specification applies to all capabilities and all conversation rounds, with higher priority than local rules of each capability.
wechatpay-global-paymentpython3 <SKILL directory>/scripts/wechatpay-resource-sync.py update⚠️ Higher priority than all other operations (including reading documents, answering user questions). Cannot be skipped or delayed.
wx.gtimg.compay.weixin.qq.compay.wechatpay.cnapi.mch.weixin.qq.comapi2.mch.weixin.qq.comsupport.pay.weixin.qq.compython3 <SKILL directory>/scripts/wechatpay-resource-sync.py updatewechatpay-dev-cli knowledge search "<original user question>"querynpm install -g @tenpay/wechatpay-dev-cli@latestUse this capability when users are unsure which WeChat Pay product to use, or want to understand the differences and applicable scenarios of each product.
User Question
|
└──> Load <SKILL directory>/assets/wechatpay-product-overview.md
(includes payment products + brand management products)
|
└── If focusing on "which voucher to choose" ──> Load <SKILL directory>/assets/brand/品牌商户/商品券(单券)/附录/券类型选型.md
(selection decision for 10 types of product vouchers)Use this capability when users need sample code or interface documents for a WeChat Pay interface.
API List/Use this capability when users want to conduct quality review or pre-launch check on existing access code.
‼️ Routing Rule: All user questions that do not belong to Capability 1 (Product Selection), Capability 2 (Sample Code), Capability 3 (Access Quality Assessment) must be processed in this capability. Including but not limited to: knowledge query, process explanation, interface rule consultation, field meaning, error code meaning, error troubleshooting, etc.This capability is the default fallback capability——when it cannot be clearly matched to Capability 1/2/3, it must enter the sub-module process of this capability.
User Question
|
+-- Need order checking and troubleshooting (posted interface errors/abnormal responses to locate causes, or provided order numbers to confirm transaction status)
| |
| └──> APIv3 Interface Dynamic Troubleshooting
|
+-- All other questions (knowledge-based questions, process consultation, interface description, field meaning, error code interpretation, product rules, callback format, etc.)
|
└──> Document Retrieval and Q&A 【Default Branch】| Sub-module | Function |
|---|---|
| Document Retrieval and Q&A | Default sub-module. Retrieve the locally synchronized WeChat Pay official document knowledge base, find relevant documents according to user questions and answer. |
| APIv3 Interface Dynamic Troubleshooting | Query payment orders and refund orders, assist in troubleshooting order checking failures |
Read./references/文档检索与问答.mdreferences/The following information is irrelevant to the skill capabilities, for reference only.