pingpp-pay
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "pingpp-pay" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-95e4eb762e88927f97a7899d762a89f6cbfed88a835c2101418e78cf3f924f04. Verify the upstream source and version against https://skillhub.cn/skills/pingplusplus/pingpp-pay before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Ping++ payment integration support: Integrate Ping++ (pingpp-java) into an existing Java Spring Boot project, including SDK configuration, service-layer implementation, webhook handlers, and unit tests, covering core payment interfaces such as Charge, Refund, Transfer, BatchTransfer, RedEnvelope, and Order. Trigger keywords include Ping++, pingpp, PingPlusPlus, payment aggregation integration, connect payment SDK, create Charge, and webhook signature verification.
Introduction source: third_party · pingplusplus · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: pingpp-pay
description: 在现有 Java Spring Boot 项目中集成 Ping++ 支付 SDK(pingpp-java)。生成 SDK 配置、Service 层、Webhook 处理器及单元测试,覆盖付款(Charge)、退款(Refund)、企业付款(Transfer)、批量付款(BatchTransfer)、红包(RedEnvelope)、订单(Order)等核心接口。当用户提到 Ping++、pingpp、PingPlusPlus、聚合支付集成、接入支付 SDK、Charge 创建、Webhooks 验签时触发。pingpp-pay
在现有 Java Spring Boot 项目中集成 Ping++ 支付 SDK(com.pingxx:pingpp-java)。
- SDK 源码:https://github.com/pingplusplus/pingpp-java
- 接口文档:https://www.pingxx.com/api/
- 帮助中心: https://help.pingxx.com/
- SDK 版本:2.5.6,要求 JDK 8+
使用时机
触发条件:
- 用户要求在项目中接入/对接/集成 Ping++ 支付
- 用户提到 "Charge 创建"、"Webhooks 验签"、"企业付款 Transfer"、"退款 Refund" 并需要写代码
不触发条件:
- 用户只是讨论支付业务逻辑而不需要写代码
- 用户对接其他非 Ping++ 的支付系统
前置条件
执行本 Skill 前,用户需已获取:
| 准备项 | 说明 |
|---|---|
| API Key | Dashboard → 【企业面板】 →【开发参数】→ Secret Key(sk_test_ 或 sk_live_) |
| App ID | Dashboard → 应用首页(app_ 开头) |
| 商户私钥 | 自行生成 RSA 密钥对,在 Dashboard →【企业面板】 →【开发参数】商户 RSA 公钥上传 |
| Ping++ 公钥 | Dashboard →【企业面板】 →【开发参数】→ Ping++ 公钥,用于 Webhooks 验签 |
TestKey(sk_test_)不产生真实交易,开发调试使用。
关键规则
- Charge 返回客户端必须用
charge.toString()— 该方法返回正确的 JSON 字符串,不要用其他序列化方式 - 原始 POST Body 用于验签 — Webhooks 验签必须使用原始 HTTP Body 字节,不能经过 JSON 解析再序列化
- PingppException 是 checked exception — 所有 SDK 方法调用必须用 try-catch 包裹
- Webhooks 必须返回 HTTP 200 — 否则 Ping++ 会重试推送,须结合幂等控制
- verifyPublicKey 是 Ping++ 平台公钥 — 非商户自己的公钥,混用将导致验签永远失败
- TestKey 只能调用测试接口 — 不要用 TestKey 查询真实交易数据
核心工作流程
第一步:确认对接参数
向用户确认:
- API Key(Test 还是 Live)
- App ID
- 需要接入的接口(付款 / 退款 / 企业付款 / 红包 / 订单 等)
- 是否需要 Webhooks 通知及回调地址
第二步:分析现有项目
扫描当前工作目录,了解:
- 构建工具(Maven/Gradle)
- 根包路径
- 现有配置格式(yml/properties)
- 是否已有支付模块
第三步:集成 SDK
按 sdk-setup.md 完成:
- 添加 Maven/Gradle 依赖
- 生成
PingppConfig配置类 - 在
application.yml中添加配置项
第四步:生成集成代码
按 code-generation.md 在项目包结构下生成:
ChargeService(必须)RefundService(按需)TransferService(按需)PingppWebhookController(如需 Webhooks)PingppPaymentException
具体 API 方法签名和渠道参数见 api-reference.md。
第五步:Webhooks 配置
如需异步通知,按 webhooks.md 生成 Controller,并提示用户:
- 将回调 URL 配置到 Dashboard →【应用设置】→【Webhooks】
- 确认
pingpp_public_key.pem已放到src/main/resources/
第六步:编译与测试
硬性要求:为所有接入的接口生成单元测试,查询类测试(retrieve、list)必须在 TestKey 环境通过。
Step 1: 提示用户 mvn clean compile / gradle build 验证编译
Step 2: 生成单元测试(写入类测试加 @Disabled 注释,待用户填入真实数据启用)
Step 3: 查询类测试必须通过 → 验证 SDK 连通性和签名正确性
Step 4: 向用户报告测试结果
技术参考
- SDK 安装与初始化:sdk-setup.md
- API 方法与渠道参数:api-reference.md
- Webhooks 验签与处理:webhooks.md
- 代码生成规范与模板:code-generation.md
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的 Ping++ 支付 SDK 集成方案,覆盖 Charge、Refund、Transfer、Webhook 等核心支付功能
- 针对 Java Spring Boot 项目,具有明确的技术实用价值
Highlights
- 触发词覆盖全面且精准,包括 Ping++、pingpp、Charge 创建、Webhooks 验签等关键词
- 边界清晰,明确区分触发与不触发场景
Highlights
- 六步工作流程清晰完整,包含参数确认、项目分析、SDK 集成、代码生成、Webhooks 配置和测试验证
- frontmatter 完整,文档结构规范
Areas to improve
-
引用文件缺失 Reported severity: Major
SKILL.md 引用了 [sdk-setup.md]、[code-generation.md]、[api-reference.md]、[webhooks.md] 四个文件,但均未传入
Recommendation: 请补充所有被引用的参考文件,确保用户能完整执行集成流程
-
引用文件缺失 Reported severity: Major
SKILL.md 引用了 [code-generation.md] 文件,但未传入
Recommendation: 请补充 code-generation.md 文件
-
引用文件缺失 Reported severity: Major
SKILL.md 引用了 [api-reference.md] 文件,但未传入
Recommendation: 请补充 api-reference.md 文件
-
引用文件缺失 Reported severity: Major
SKILL.md 引用了 [webhooks.md] 文件,但未传入
Recommendation: 请补充 webhooks.md 文件
Highlights
- 关键规则明确,包括 Charge.toString() 使用、原始 POST Body 验签、PingppException 处理等
- 前置条件完整,要求用户提供 API Key、App ID、商户私钥等必要参数
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 35, 37, 61
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- help.pingxx.com
- www.pingxx.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.