springboot-wechat-pay-skill

springboot-wechat-pay-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 145 tokens per session (4,827 once invoked), scanned A, original, Apache-2.0.

A Spring Boot module for WeChat Pay V3, the payment system used in WeChat. It supports payments from WeChat pages, mini-programs, mobile browsers, desktop QR codes, and apps, plus refunds, signed callbacks, order queries, closing orders, and bill downloads.

In plain words
What is it for?
Use it to implement WeChat checkout, refunds, order management, callback signature checks, and bill reconciliation across web, mini-program, QR-code, and app flows.
Why use it?
It supplies the payment routes and transaction handling needed to connect an existing Spring Boot application to WeChat Pay without adding Alipay.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to implement WeChat checkout, refunds, order management, callback signature checks, and bill reconciliation across web, mini-program, QR-code, and app flows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/springboot-wechat-pay-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill springboot-wechat-pay-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for springboot-wechat-pay-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-wechat-pay-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-wechat-pay-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-wechat-pay-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-wechat-pay-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for springboot-wechat-pay-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-wechat-pay-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-wechat-pay-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00145 $0.04827
Opus 5.5 $0.00058 $0.01931
Sonnet 5.5 $0.00029 $0.00965
Haiku 4.5 $0.00015 $0.00483

Measured 1mo ago against content hash 61ad908ca566, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

springboot-wechat-pay-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend/java/springboot-module/springboot-wechat-pay-skill/SKILL.md · 498 lines

How it starts

The opening of the file, as written. The whole thing — 498 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spring Boot WeChat Pay Module Skill

微信支付 V3(推荐)独立模块,只覆盖微信渠道。与支付宝完全解耦,按需引入。

与合一版的关系

Skill 范围 推荐度
springboot-wechat-pay-skill(本) 仅微信 V3 ⭐⭐⭐⭐⭐ 单一渠道项目
springboot-alipay-pay-skill 仅支付宝 ⭐⭐⭐⭐⭐ 单一渠道项目
springboot-payment-module-skill 微信+支付宝合一 旧版,已不推荐

新项目请用本 skill + alipay skill 分别引入,避免代码耦合。

能力清单

能力 适用场景 接口
JSAPI 支付 公众号网页 / 微信内浏览器 POST /api/wechat-pay/jsapi
小程序支付 微信小程序 POST /api/wechat-pay/miniprogram
H5 支付 手机浏览器(非微信) POST /api/wechat-pay/h5
Native 支付 PC 网站扫码 POST /api/wechat-pay/native
App 支付 iOS / Android App POST /api/wechat-pay/app
退款 全渠道通用 POST /api/wechat-pay/refund
查询订单 全渠道通用 GET /api/wechat-pay/query/{orderNo}
关单 全渠道通用 POST /api/wechat-pay/close/{orderNo}
回调验签 全渠道通用 POST /api/wechat-pay/notify
账单下载 对账 GET /api/wechat-pay/bill

前置依赖

依赖 说明
springboot-init-skill 项目骨架(必须)
springboot-auth-module-skill 当前用户获取(推荐)
springboot-redis-module-skill 幂等防重 + 限流(推荐)

核心实现

1. 依赖

<!-- 微信支付 V3 SDK(推荐) -->
<dependency>
    <groupId>com.github.wechatpay-apiv3</groupId>
    <artifactId>wechatpay-java</artifactId>
    <version>0.2.18</version>
</dependency>
<!-- Apache HttpClient(SDK 默认实现) -->
<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpclient</artifactId>
</dependency>

版本说明:V2 SDK(com.github.wxpay:wxpay-sdk 3.0.10)已停更,本 skill 强制使用 V3。

2. 配置(application.yml)

wechat:
  pay:
    # ====== 必填项:从商户平台获取 ======
    app-id: ${WECHAT_APP_ID:}              # 公众号/小程序/移动应用 appId
    mch-id: ${WECHAT_MCH_ID:}              # 商户号(如 1900000109)
    
    # ====== 商户 API 证书(V3 必须) ======
    private-key-path: ${WECHAT_PRIVATE_KEY_PATH:}    # 商户私钥 apiclient_key.pem 路径
    merchant-cert-path: ${WECHAT_MERCHANT_CERT_PATH:} # 商户证书 apiclient_cert.pem 路径
    api-cert-serial-no: ${WECHAT_API_CERT_SERIAL_NO:} # 商户证书序列号
    
    # ====== 微信支付平台证书(V3 验签用) ======
    api-v3-key: ${WECHAT_API_V3_KEY:}      # APIv3 密钥(在商户平台设置)
    
    # ====== 回调地址 ======
    notify-url: ${WECHAT_NOTIFY_URL:https://yourdomain.com/api/wechat-pay/notify}
    
    # ====== 可选项 ======
    refund-notify-url: ${WECHAT_REFUND_NOTIFY_URL:}  # 退款回调(默认复用 notify-url)
    connect-timeout-ms: 5000
    read-timeout-ms: 10000

Read the full file on GitHub · 498 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 498 lines · 145 tokens per session scan A 61ad908ca566

Subscribe to this mod's changes

springboot-wechat-pay-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 145 tokens to every session and 4,827 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.

Related

springboot-wechat-pay-skill compared with skills from other repositories

springboot-wechat-pay-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
springboot-wechat-pay-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0A145Claude Code, Codex
x402browser-use/browser-useSkill122kyesterdayMITA166Claude Code
tushareHKUDS/Vibe-TradingSkill39kyesterdayMITA79Claude Code, Codex
hyperliquid-websocketgalleonlabs/hypergrok-trading-deskSkill635yesterdayMITA89Claude Code
wechatpay-payment-integrationwechatpay-apiv3/wechatpay-skillsSkill37912d agoMITA330Claude Code, Codex
build-a-stripe-integrationsuperset-sh/supersetSkill17k2d agoMITA74Claude Code
freee-api-skillfreee/freee-mcpSkill525yesterdayApache-2.0A397Claude Code