springboot-alipay-pay-skill

springboot-alipay-pay-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 138 tokens per session (3,760 once invoked), scanned A, original, Apache-2.0.

A Spring Boot module for Alipay, a Chinese online payment service. It covers in-person, mobile web, desktop web, and app payments, plus refunds, signed callbacks, order queries, closing orders, and bill downloads.

In plain words
What is it for?
Use it to add Alipay checkout for web, mobile, app, or QR-code flows and handle refunds, payment notifications, order management, and reconciliation.
Why use it?
It provides the server-side payment endpoints and transaction operations needed to connect an existing Spring Boot application to Alipay without adding WeChat Pay.

Skill for Claude CodeCodex

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

Good fit Use it to add Alipay checkout for web, mobile, app, or QR-code flows and handle refunds, payment notifications, order management, and reconciliation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/springboot-alipay-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-alipay-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-alipay-pay-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-alipay-pay-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-alipay-pay-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-alipay-pay-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-alipay-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-alipay-pay-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-alipay-pay-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-alipay-pay-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,760 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.00138 $0.03760
Opus 5.5 $0.00055 $0.01504
Sonnet 5.5 $0.00028 $0.00752
Haiku 4.5 $0.00014 $0.00376

Measured 10d ago against content hash 91e13089cb45, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

springboot-alipay-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 10d 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.

vibeCoding/backend/java/springboot-module/springboot-alipay-pay-skill/SKILL.md · 396 lines

How it starts

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

Spring Boot Alipay Pay Module Skill

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

与合一版的关系

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

能力清单

能力 适用场景 接口
当面付(条码) 线下收银台,用户被扫 POST /api/alipay/trade/precreate
当面付(扫码) PC 网站生成二维码 POST /api/alipay/trade/precreate
手机网站支付 手机浏览器(H5) POST /api/alipay/trade/wap
PC 网站支付 PC 浏览器(页面跳转) POST /api/alipay/trade/page
App 支付 iOS / Android App POST /api/alipay/trade/app
退款 全渠道通用 POST /api/alipay/trade/refund
查询订单 全渠道通用 GET /api/alipay/trade/query/{orderNo}
关单 全渠道通用 POST /api/alipay/trade/close/{orderNo}
回调验签 全渠道通用 POST /api/alipay/notify
账单下载 对账 GET /api/alipay/bill

前置依赖

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

核心实现

1. 依赖

<!-- 支付宝新版 SDK(推荐) -->
<dependency>
    <groupId>com.alipay.sdk</groupId>
    <artifactId>alipay-sdk-java</artifactId>
    <version>4.35.2.ALL</version>
</dependency>

2. 配置(application.yml)

alipay:
  # ====== 必填项:从开放平台获取 ======
  app-id: ${ALIPAY_APP_ID:}                  # 16 位数字(沙箱:2021000000000000)
  
  # ====== 密钥对(V2 私钥 + 支付宝公钥) ======
  # 商户应用私钥(pkcs8 格式)
  private-key: ${ALIPAY_PRIVATE_KEY:}
  # 支付宝公钥(从开放平台获取,不是应用公钥!)
  alipay-public-key: ${ALIPAY_PUBLIC_KEY:}
  
  # ====== 回调地址 ======
  notify-url: ${ALIPAY_NOTIFY_URL:https://yourdomain.com/api/alipay/notify}
  return-url: ${ALIPAY_RETURN_URL:https://yourdomain.com/pay/success}
  
  # ====== 网关地址 ======
  # 生产:https://openapi.alipay.com/gateway.do
  # 沙箱:https://openapi.alipaydev.com/gateway.do
  gateway-url: ${ALIPAY_GATEWAY_URL:https://openapi.alipay.com/gateway.do}
  
  # ====== 签名方式 ======
  sign-type: RSA2
  charset: UTF-8
  format: json

Read the full file on GitHub · 396 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. 10d ago First seen · 396 lines · 138 tokens per session scan A 91e13089cb45

Subscribe to this mod's changes

springboot-alipay-pay-skill is a skill published in the GitHub repository jiushiwon/wg-skills (120 stars, last pushed yesterday), licensed Apache-2.0. It adds 138 tokens to every session and 3,760 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

Other skills, from other repositories

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

tushare

A Python interface for Tushare, a financial data service that provides market and company information for stocks, funds, futures, and digital assets. It returns queried data as pandas tables.

HKUDS/Vibe-Trading · 79 tokens

stripe-best-practices

Guides Stripe integration decisions across development and test environment planning (separate sandboxes vs the shared test mode sandbox), API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax…

stripe/ai · 161 tokens

wechatpay-payment-integration

A Chinese-language guide for WeChat Pay, Tencent's payment service, covering product selection, integration, troubleshooting, and payment operations.

wechatpay-apiv3/wechatpay-skills · 330 tokens

crypto-market-data-service-guide

Guide to the Crypto Market Data TypeScript service — clean market data APIs for token prices, candles, market cap, and volume across multiple chains. Features caching, rate limiting, fallback sources, and WebSocket subscriptions. Built for production DeFi applications.

nirholas/three.ws · 56 tokens

freee-api-skill

A guide for using freee's APIs through an MCP server. freee is a Japanese business platform covering accounting, payroll, invoices, time tracking, sales, tax filing, and related work.

freee/freee-mcp · 365 tokens