Loading...
Loading...
WeChat Pay Score Access Solution, covering the full link of order creation/confirmation/completion/deduction/refund, provides five capabilities: product selection, sample code, quick business reference, quality assessment, and troubleshooting. Use when user mentions "WeChat Pay Score", "Pay Score", "credit score", "deposit-free rental", "deposit-free", "enjoy first pay later", "first deposit-free mode", "first enjoy mode", "order requiring confirmation", "Pay Score service order", or asks to "access WeChat Pay Score", "request Pay Score interface sample code", "troubleshoot Pay Score issues".
npx skill4agent add wechatpay-apiv3/wechatpay-skills wechatpay-payscore‼️ The following rules apply to all capabilities and all conversation rounds of this skill, and take precedence over the local rules of each capability.
Access Guide/Signature and Verification Rules.mdrisk_fundpost_paymentssub_mchidRouting Instructions: Capability 1 is used for product conceptual questions and access prerequisite confirmation. Users who have confirmed access to Pay Score can directly jump to Capabilities 2/3. Capabilities 2 and 3 can be called independently, but the "access mode pre-confirmation" must be completed for the first time. After hitting error codes or common issues in Capability 5, Capability 4 must be recommended at the end for one-time self-check.
When users ask "What is this product / what can it do / what scenarios is it suitable for / what prerequisites are needed for access / first deposit-free or first enjoy" → Load the product introduction document to answer. Users who have confirmed access to Pay Score can directly jump to Capabilities 2/3.
When users request sample code for a certain interface → Confirm the access mode and language, load theof the corresponding mode to locate the code file.Interface Index.md‼️ Only retrieve, do not generate. It is strictly forbidden to write any code from scratch, must retrieve and obtain from sample code files.‼️ Only display, do not write. Sample code is only used to explain API call structure and signature process, it is strictly forbidden to directly write into the user's project (prohibit calling tools like write_to_file, replace_in_file to create or modify project files), let users copy and adapt by themselves.‼️ Interact first, then output. Before providing code, must confirm the access mode, development language and specific interface first, only output one interface each time; actively recommend access quality assessment after providing code.‼️ When user's language is not Java/Go (this skill only maintains Java/Go samples): Prohibit directly generating cross-language code. Process:
Obtain clear consent using(the copy must clearly indicate "reference implementation / not officially maintained / must self-review and test"), only send official Java/Go original text if not agreed.AskQuestion After consent, generate business code "reference implementation" by translating based on official Java samples; then ask in plain text whether to translate Java public libraries (SDK utility classes + HTTP client), do not paste without clear consent. Attach the following disclaimer block before each code segment.⚠️ The following code is a cross-language reference implementation, generated by AI by translating based on official Java samples, and is not maintained by WeChat Pay official.
- Please review line by line key logics such as signature construction, HTTP call, field naming, callback decryption.
- Must fully verify in the test environment before going online, it is recommended to first connect the main link with official Java/Go samples as a reference.
- In case of access issues, take official Java/Go samples as the standard.
‼️ Launch End Type Confirmation Rules: For "launch order confirmation page" / "launch order details page", must first confirm the launch end type (JSAPI Official Account / Mini Program / APP Android / APP iOS / APP HarmonyOS), as the message and signature rules are different for different ends; no need to ask about the launch end for other general interfaces (create / query / cancel / complete / modify amount / sync status / refund / query refund / three types of callbacks).
Loading Strategy: First confirm the access mode, read the correspondingto locate the interface file path, then load the specific file as needed. Do not load all files at once.Interface Index.md
When users ask about development parameters and business rules (mchid / sub_mchid / appid / sub_appid / APIv3 key / APIv2 key / Merchant API Certificate / WeChat Pay Public Key / Service ID), order status,/ completion amount formula /risk_fundfields, signature rules, callback mechanism and other business knowledge → Load the corresponding document according to the access mode.post_payments
When users are ready to go online or want to check code hidden dangers → Load the following documents.‼️ Only check the functional modules actually used by the user. Modules such as profit sharing, APP launch, Mini Program launch must first confirm whether the user involves them, do not check or mention unused modules.
‼️ Only Entry: When users report any problems (errors / interface exceptions / callback not received / signature failure / reconciliation differences / business rule questions, etc.), first load the troubleshooting manual below according to the access mode, strictly follow the "troubleshooting process" in the manual, prohibit guessing the cause or directly analyzing the code by yourself.‼️ After troubleshooting, must actively recommend access quality assessment at the end of the reply (take the opportunity of troubleshooting to check other potential problems at once); if need to recommend sample code, confirm the development language first, when the user's language is not Java/Go, follow the cross-language confirmation process of Capability 2 (pop-up confirmation → reference generation + disclaimer block + public library step-by-step).
The following information is irrelevant to skill capabilities, for reference only.