Loading...
Loading...
WeChat Pay Medical Insurance Payment (Mobile Medical Insurance Payment 2.0) Access Solution, covering the full link of medical insurance and self-payment mixed order placement, order query, medical insurance refund notification, and medical insurance payment callback. It provides five capabilities: product selection/sample code/business quick reference/quality assessment/troubleshooting. Use when user mentions "Medical Insurance Payment", "Mobile Medical Insurance Payment 2.0", "Medical Insurance and Self-payment Mixed", "Medical Insurance Electronic Certificate", "Medical Insurance Mixed Payment Collection", "Medical Insurance Refund Notification", "Medical Insurance Registration", "Medical Insurance In-clinic Payment", "Medical Insurance Inpatient Settlement", "Medical Insurance Pharmacy Purchase", "Internet Hospital Medical Insurance", "Medical Insurance Designated Institution", or asks to "access medical insurance payment", "request sample code for medical insurance order placement interface", "troubleshoot medical insurance payment issues".
npx skill4agent add wechatpay-apiv3/wechatpay-skills wechatpay-medical-insurance-payment‼️ The following rules apply to all capabilities and conversation rounds of this skill, with higher priority than the local rules of each capability.
Access Guide/Signature and Verification Rules.mdsub_mchidRouting Instructions: Capability 1 is used for product conceptual questions and access prerequisite confirmation. Users who have confirmed to access medical insurance payment can directly jump to Capability 2/3. Capability 2 and 3 can be called independently, but the "pre-confirmation of access mode" must be completed for the first time. After hitting error codes or common issues in Capability 5, must recommend Capability 4 for one-time self-check at the end.
When users ask questions like "What is this product / what can it do / what scenarios is it suitable for / what prerequisites are needed for access / how to choose between merchant and service provider / what's the difference between direct and indirect connection" → Load the product introduction document to answer. Users who have confirmed to access medical insurance payment can directly jump to Capability 2/3.
When users request sample code for a certain interface → Confirm the access mode and language, load the corresponding mode'sto locate the code file.Interface Index.md‼️ Only retrieve, do NOT generate. Strictly prohibit writing any code from scratch, must retrieve from sample code files.‼️ Only display, do NOT write. Sample code is only used to explain API call structure and signature process, strictly prohibit directly writing into user projects (prohibit using tools like write_to_file, replace_in_file to create or modify project files), let users copy and adapt on their own.‼️ Interact first, then output. Must confirm access mode, development language and specific interface before providing code, output only one interface each time; proactively 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:
Useto obtain clear consent (the copy must clearly state "reference implementation / not officially maintained / must self-review and test"), if not consented, only send official Java/Go original text.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 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.
‼️ Initiation terminal type confirmation rule: For "initiate medical insurance and self-payment mixed payment", must first confirm the initiation terminal type (JSAPI Official Account H5 / Mini Program), as the message and signature rules are different for different terminals; no need to ask about the initiation terminal for other general interfaces (order placement / order query / medical insurance refund notification / successful payment callback).
Loading Strategy: First confirm the access mode, read the correspondingto locate the interface file path, then load specific files 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 / merchant API certificate / WeChat Pay public key / city ID / medical institution code / medical insurance electronic certificate authorization information), mixed payment type determination, amount formula, order status flow, sensitive field encryption, signature rules, callback mechanism and other business knowledge → Load the corresponding document according to the access mode.
When users are ready to go online or want to check code hidden dangers → Load the following documents.‼️ Only check functional modules actually used by users. Must first confirm whether users are involved in modules such as proxy payment for relatives, JSAPI initiation, Mini Program initiation, medical insurance refund notification, do NOT check or mention unused modules.
‼️ Only Entry: When users report any issues (errors / interface exceptions / unreceived callbacks / signature failures / amount verification failures / medical insurance bureau business errors / 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 causes or directly analyzing code on your own.‼️ After troubleshooting, must proactively recommend access quality assessment at the end of the reply (take the opportunity of troubleshooting to check other potential issues at once); if need to recommend sample code, confirm the development language first, when user's language is not Java/Go, follow the cross-language confirmation process in Capability 2 (popup confirmation → reference generation + disclaimer block + public library step-by-step).
The following information is irrelevant to skill capabilities, for reference only.
