pingpp-pay

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.

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.

0 Downloads

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

Browse files at the source ↗

Original SKILL.md

Open original ↗
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)。

使用时机

触发条件:

  • 用户要求在项目中接入/对接/集成 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_)不产生真实交易,开发调试使用。


关键规则

  1. Charge 返回客户端必须用 charge.toString() — 该方法返回正确的 JSON 字符串,不要用其他序列化方式
  2. 原始 POST Body 用于验签 — Webhooks 验签必须使用原始 HTTP Body 字节,不能经过 JSON 解析再序列化
  3. PingppException 是 checked exception — 所有 SDK 方法调用必须用 try-catch 包裹
  4. Webhooks 必须返回 HTTP 200 — 否则 Ping++ 会重试推送,须结合幂等控制
  5. verifyPublicKey 是 Ping++ 平台公钥 — 非商户自己的公钥,混用将导致验签永远失败
  6. TestKey 只能调用测试接口 — 不要用 TestKey 查询真实交易数据

核心工作流程

第一步:确认对接参数

向用户确认:

  • API Key(Test 还是 Live)
  • App ID
  • 需要接入的接口(付款 / 退款 / 企业付款 / 红包 / 订单 等)
  • 是否需要 Webhooks 通知及回调地址

第二步:分析现有项目

扫描当前工作目录,了解:

  • 构建工具(Maven/Gradle)
  • 根包路径
  • 现有配置格式(yml/properties)
  • 是否已有支付模块

第三步:集成 SDK

按 sdk-setup.md 完成:

  1. 添加 Maven/Gradle 依赖
  2. 生成 PingppConfig 配置类
  3. 在 application.yml 中添加配置项

第四步:生成集成代码

按 code-generation.md 在项目包结构下生成:

  • ChargeService(必须)
  • RefundService(按需)
  • TransferService(按需)
  • PingppWebhookController(如需 Webhooks)
  • PingppPaymentException

具体 API 方法签名和渠道参数见 api-reference.md。

第五步:Webhooks 配置

如需异步通知,按 webhooks.md 生成 Controller,并提示用户:

  1. 将回调 URL 配置到 Dashboard →【应用设置】→【Webhooks】
  2. 确认 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: 向用户报告测试结果

技术参考

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供完整的 Ping++ 支付 SDK 集成方案,覆盖 Charge、Refund、Transfer、Webhook 等核心支付功能
  • 针对 Java Spring Boot 项目,具有明确的技术实用价值
Trigger Precision90/100

Highlights

  • 触发词覆盖全面且精准,包括 Ping++、pingpp、Charge 创建、Webhooks 验签等关键词
  • 边界清晰,明确区分触发与不触发场景
Structure and Standards90/100

Highlights

  • 六步工作流程清晰完整,包含参数确认、项目分析、SDK 集成、代码生成、Webhooks 配置和测试验证
  • frontmatter 完整,文档结构规范
Execution Reliability85/100

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、商户私钥等必要参数
Evidence Verifiability (mean of the first four)88/100

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.

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

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

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.