微信支付基础支付接入skill

v1.0.1

微信支付基础支付解决方案,涵盖支付、退款账单、分账、商户进件、开户意愿确认,提供选型/代码示例/业务速查/质量评估/排障五大能力。Use when user mentions "JSAPI支付", "APP支付", "H5支付", "Native支付", "小程序支付", "付款码支付", "合单支付", "调起...

0· 154·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zhangpeng319/wechatpay-basic-payment.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "微信支付基础支付接入skill" (zhangpeng319/wechatpay-basic-payment) from ClawHub.
Skill page: https://clawhub.ai/zhangpeng319/wechatpay-basic-payment
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install wechatpay-basic-payment

ClawHub CLI

Package manager switcher

npx clawhub@latest install wechatpay-basic-payment
Security Scan
Capability signals
CryptoRequires walletCan make purchasesRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the provided assets: extensive docs, language-specific sample code, and diagnostic scripts for WeChat Pay integration (payments, refunds, bills, profit-sharing, onboarding). The included files are exactly what a payments integration help skill would reasonably contain.
Instruction Scope
SKILL.md is prescriptive and narrowly scoped: it requires explicit user consent before collecting parameters, forbids writing files to the user's project, and instructs scripts to be run on the user's servers (signing is done locally). One ambiguity: several places say the agent will 'execute the corresponding query scripts' when offering to help—the skill also states scripts should be run on the user's server and private keys must not be shared. This is consistent but relies on the agent and user following the 'do not transmit private keys' rule; the user should verify the agent will not request or accept private keys or other secrets.
Install Mechanism
No install spec — instruction-only skill with bundled docs and example code. Nothing is downloaded from arbitrary URLs at install time. The only external asset in the content is a GitHub raw URL for a QR image (commons host).
Credentials
The skill does not request environment variables, binaries, or credentials in its registry metadata. SKILL.md explicitly prohibits acquiring merchant private keys and requires the user to perform signing locally and only pass back Base64 signature values, timestamps, and nonces — which is proportionate to diagnostic scripts that need signed requests.
Persistence & Privilege
always:false and no install steps. The skill does not request persistent privileges or system-wide configuration changes. It does not declare the ability to auto-enable itself or modify other skills.
Scan Findings in Context
[base64-block] expected: SKILL.md instructs users to provide Base64-encoded signatures (scripts use '签名值(Base64)'), which is expected for a signing workflow. The scanner flagged a 'base64-block' pattern but in context this appears to be legitimate usage (signed payloads) rather than prompt-injection. Still, treat any pasted Base64 blobs as sensitive since they may represent signed tokens/credentials.
Assessment
This skill is internally coherent for WeChat Pay guidance: it bundles official-style docs, many language sample files, and helper scripts. Before installing or using it: - Review bundled sample code (especially scripts) for hard-coded secrets, test credentials, or insecure practices before copying into production. - Never paste or transmit your private API key or private certificate to the agent. Follow the skill's recommended flow: perform signing on your own server and only share the minimal signature output (Base64 signature, timestamp, nonce) if needed. - When the skill offers to 'run' diagnostic scripts, confirm whether it means you should run them locally — do not allow the agent to run commands on your environment or to upload your private keys. - If you plan to use any examples in production, rotate any test credentials, run static analysis on the code, and test in a sandbox merchant account first. If you want, I can (a) scan the bundled code files for obvious hard-coded credentials and risky patterns, or (b) point out exactly which files to inspect first (e.g., scripts/商户/*.py and any 'utility' files that might load keys).

Like a lobster shell, security has layers — review code before you run it.

latestvk97a4g9xe68kcgrzw1msb5xwe1857sjt
154downloads
0stars
2versions
Updated 1w ago
v1.0.1
MIT-0

微信支付基础支付 & 合单支付接入指引

全局交互规范

‼️ 以下规则适用于本技能所有能力、所有对话轮次,优先级高于各能力的局部规则。

  1. 所有问题必须得到用户明确回答后才能继续。 如果一次提出了多个问题,必须逐一检查每个问题是否都已获得用户的明确答复。对于未回答的问题,必须再次追问,严禁对未回答的问题自行假设、推断或使用默认值
  2. 接入模式前置确认:任何能力使用前须先确认商户模式服务商模式,已明确则无需重复。两种模式的核心差异见 → 📄 接入模式说明.md
  3. 分步确认协议(简单知识问答除外,需要帮用户排查、分析或执行操作时必须遵守):
  • ① 明确需求:先理解用户问题,给出初步判断或原因分析,不要一上来就堆参数清单。
  • ② 征得同意:主动提出下一步能做什么,等用户明确同意后才继续,严禁用户没表态就开始收集参数或执行操作。
  • ③ 收集信息:用户同意后再告知需要哪些信息并逐项收集,收齐才能执行。
  • ④ 执行前确认:准备执行操作前,简要说明即将做什么,确认用户同意后再执行;涉及线上环境须额外提示风险。

能力概览

  1. 产品选型 — 根据场景推荐支付方式(JSAPI/APP/H5/Native/小程序/付款码),判断是否需要合单支付
  2. 示例代码 — 各接口的下单、调起、回调、退款、账单等代码结构示例(只展示不写入)
  3. 业务知识速查 — 订单状态、退款规则、账单对账、APPID绑定、特约商户进件、开户意愿确认等
  4. 接入质量评估 — 签名验签、业务逻辑完整性、回调处理规范性检查(含合单/分账/进件/开户意愿确认专项)
  5. 问题排查 — 下单失败、调起异常、回调收不到、退款失败等(含合单支付专项常见问题)

未明确支付方式时先通过能力1引导选型。退款和账单无需确认支付方式,但仍需确认接入模式。合单支付需先确认是否涉及多商户/多APPID场景。特约商户进件和商户开户意愿确认仅适用于服务商/渠道商模式。

能力1:产品选型

用户问「该用哪种支付方式」或比较各方式区别时 → 加载 支付产品对比.md,确定支付方式后再按需加载示例代码。

能力2:示例代码

用户要某个接口的代码示例时 → 确认接入模式和语言,加载对应模式的 接口索引.md 定位代码文件。

‼️ 只检索、不生成。 严禁从零编写任何代码,必须从代码示例文件中检索获取。

‼️ 只展示、不写入。 代码示例仅用于讲解 API 调用结构和签名流程,严禁直接写入用户项目(禁止调用 write_to_file、replace_in_file 等工具创建或修改项目文件)。在对话中展示代码,让用户自行复制适配。

‼️ 先交互、后输出。 提供代码前必须先确认接入模式、开发语言和具体接口,每次只输出一个接口;提供完代码后主动推荐接入质量评估。

‼️ 支付方式仅「下单」和「调起支付」接口需确认,其他接口无需询问支付方式。 用户请求查单、关单、退款、回调处理、账单等通用接口时,只需确认接入模式和开发语言,无需询问支付方式——这些接口各支付方式完全相同。但合单支付的查单、关单、回调使用专用接口,需确认用户是基础支付还是合单支付。

加载策略:先确认接入模式,读对应的 接口索引.md 定位用户需要的接口对应的文件路径,再按需加载具体文件。不要一次性加载所有文件。

能力3:业务知识速查

用户问参数获取、APPID绑定、订单状态、退款规则、分账等业务知识时 → 按接入模式加载对应文档。

加载策略:按关键词匹配文档,区分接入模式。特约商户进件和商户开户意愿确认为服务商/渠道商专属,商户模式无需加载。

能力4:接入质量评估

用户准备上线或想检查代码隐患时 → 加载以下文档。

‼️ 只检查用户实际使用的功能模块。 合单支付、分账、进件、开户意愿确认等模块须先确认用户是否涉及,未使用的不检查、不提及

能力5:问题排查

用户遇到报错或接口调用异常时 → 按下方路径分流加载。

加载策略

  • 路径A(有 Request-Id)→ 读 排障手册.md,提取错误码匹配 TOP 20 速查表直接给出方案;标注 🔧 的引导用户执行脚本。未命中则按手册各章节排查,仍未解决再加载对应常见问题文档兜底。
  • 路径B(无 Request-Id)→ 确认支付方式,加载对应常见问题文档匹配。未命中再加载 排障手册.md 兜底。
  • 路径C(进件/开户意愿确认)→ 直接加载 特约商户进件.md商户开户意愿确认.md,文档末尾的常见问题和常见报错覆盖高频问题。

脚本使用规范:脚本采用签名模式,不获取用户私钥。引导用户在自己服务器完成签名后,将签名值(Base64)、时间戳、随机串传入脚本。执行前需按分步确认协议征得同意。


以下信息与技能能力无关,仅供查阅。

💬 社区与反馈

在使用过程中遇到问题、有改进建议,或者想和其他开发者交流接入经验,欢迎扫码添加企业微信进群,与官方团队和社区开发者一起讨论:

微信支付 Skills 交流群二维码

Comments

Loading comments...