Loading...
Loading...
WeChat Pay basic payment solution, covering payment, refund bills, profit sharing, merchant onboarding, and account opening willingness confirmation, providing five core capabilities: product selection, code examples, quick business reference, quality assessment, and troubleshooting. Use when user mentions "JSAPI payment", "APP payment", "H5 payment", "Native payment", Mini Program payment, payment code payment, combined payment, invoke payment, payment callback, order refund, download bill, account reconciliation, service provider mode, profit sharing, special merchant onboarding, account opening willingness confirmation, or asks to "recommend payment method", "provide payment interface code examples", "troubleshoot payment or refund issues".
npx skill4agent add wechatpay-apiv3/wechatpay-skills wechatpay-basic-payment‼️ The following rules apply to all capabilities and all conversation rounds of this skill, and take precedence over local rules of each capability.
When the payment method is not clear, first guide the selection through capability 1. Refund and bill do not need to confirm the payment method, but still need to confirm the access mode. For combined payment, first confirm whether it involves multi-merchant/multi-APPID scenarios. Special merchant onboarding and merchant account opening willingness confirmation are only applicable to service provider/channel provider mode.
When the user asks "which payment method should I use" or compares the differences between various methods → load, and load the sample code as needed after determining the payment method.支付产品对比.md
When the user asks for code examples of an interface → confirm the access mode and language, load theof the corresponding mode to locate the code file.接口索引.md‼️ Only retrieve, do not generate. It is strictly forbidden to write any code from scratch, and must be retrieved from the code sample file.‼️ Only display, do not write. Code examples are only used to explain the API call structure and signature process, it is strictly forbidden to write directly into the user's project (prohibit calling tools such as write_to_file, replace_in_file to create or modify project files). Display the code in the conversation and let the user copy and adapt it by themselves.‼️ Interact first, then output. Before providing the code, you must confirm the access mode, development language and specific interface, and only output one interface at a time; after providing the code, proactively recommend access quality assessment.‼️ Only the "order placement" and "invoke payment" interfaces need to confirm the payment method, other interfaces do not need to ask for the payment method. When users request general interfaces such as order query, order closing, refund, callback processing, bill, etc., only need to confirm the access mode and development language, no need to ask for the payment method — these interfaces are exactly the same for all payment methods. However, the order query, order closing, and callback of combined payment use special interfaces, so it is necessary to confirm whether the user uses basic payment or combined payment.
Loading strategy: First confirm the access mode, read the correspondingto locate the file path corresponding to the interface required by the user, and then load the specific file as needed. Do not load all files at once.接口索引.md
When the user asks about parameter acquisition, APPID binding, order status, refund rules, profit sharing and other business knowledge → load the corresponding document according to the access mode.
Loading strategy: Match documents by keywords, distinguish access modes. Special merchant onboarding and merchant account opening willingness confirmation are exclusive to service providers/channel providers, no need to load for merchant mode.
When the user is ready to go online or wants to check code hidden dangers → load the following documents.‼️ Only check the functional modules actually used by the user. For modules such as combined payment, profit sharing, onboarding, account opening willingness confirmation, you must first confirm whether the user involves them, do not check or mention unused modules.
When the user encounters an error or interface call exception → split and load according to the following path.
查询订单.py查询退款.pyscripts/商户/scripts/服务商/Loading strategy:
- Path A (with Request-Id) → Read
, extract the error code to match the TOP 20 quick lookup table and give the solution directly; for scenarios marked with 🔧, guide the user to execute the script. If not hit, troubleshoot according to each chapter of the manual, and load the corresponding common problem document as a fallback if still not resolved.排障手册.md- Path B (without Request-Id) → Confirm the payment method, load the corresponding common problem document for matching. If not hit, load
as a fallback.排障手册.md- Path C (onboarding/account opening willingness confirmation) → Directly load
or特约商户进件.md, the common problems and common errors at the end of the document cover high-frequency problems.商户开户意愿确认.mdScript usage specification: The script adopts signature mode and does not obtain the user's private key. Guide the user to complete the signature on their own server, and then pass the signature value (Base64), timestamp, and nonce string into the script. Before execution, consent must be obtained in accordance with the step-by-step confirmation agreement.