alipay-payment-integration: Using Agent Skill to Integrate Alipay Payment by Scenario

Introduction

Integrating Alipay payments into business applications often presents challenges not in “whether you can call an interface,” but in product selection: Face-to-Face Payment, Order Code Payment, App Payment, JSAPI Payment, H5 Payment, PC Web Payment, Pre-authorization, and Merchant Deduction each correspond to different APIs and documentation pages. Relying solely on an AI model’s memory to write code can easily lead to selecting the wrong product, overlooking asynchronous notification and signature verification specifications, and lacking a systematic self-check before going live.

Below is an introduction to the community Skill alipay-payment-integration on SkillHub (Coordinate @user_944a3ade/alipay-payment-integration-v3). It organizes the multi-scenario integration of the Alipay Open Platform into an executable workflow: routing to the corresponding product and online documentation based on business scenarios, and constraining the Agent to use curl to fetch the latest documentation before answering or writing code.

What is this

alipay-payment-integration is an Alipay Open Platform Payment Product Integration Best Practice Skill designed for Agents. It is published by SkillHub user user_944a3ade, sourced from the community, categorized under dev-programming, and is currently at version 1.0.0. The materials included in the Skill package align with the Alipay Open Platform documentation system (the skills-Alipay.alipay-payment-integration-master directory is visible within the package).

The Skill page marks requires_api_key=false, indicating that installing and triggering this Skill itself does not rely on additional API Keys; however, actual payment integration still requires configuration such as application creation, keys, and product activation on the Alipay Open Platform.

Core Features

The following content is derived from the SKILL.md and references/checklist.md within the Skill package, serving as a verified summary of its capabilities.

Scenario Routing and Product Selection

The Skill provides an integration routing table and a rapid decision tree. Based on branches such as offline/online, deposits, and recurring deductions, it maps to recommended products and core APIs. For example:

Scenario Recommended Product Core API
User displays payment code, merchant scans to collect payment Face-to-Face Payment alipay.trade.pay
Merchant generates QR code, user scans to pay Order Code Payment alipay.trade.precreate
Initiating Alipay in mobile browser H5 Mobile Web Payment alipay.trade.wap.pay
Redirecting to checkout page in PC browser PC Web Payment alipay.trade.page.pay
Payment within Alipay Mini Program JSAPI Payment alipay.trade.create + my.tradePay
Payment within Native App App Payment alipay.trade.app.pay
Deposit freezing, Credit Stay, etc. Pre-authorization Payment alipay.fund.auth.order.app.freeze
Recurring deductions, auto-renewal Merchant Deduction Sign and Pay + subsequent alipay.trade.pay

Additionally, there is a “Scenario Keyword Matching” table to facilitate routing to the corresponding product when users mention terms like “H5 payment,” “payment code,” or “monthly subscription.”

Online Documentation Access Specification

The Skill explicitly requires that Alipay payment product documentation consists of dynamic online links, and the corresponding product documentation must be read before integration. The access method involves using curl to fetch CMS pages and recursively accessing sub-links within the documentation to obtain product introductions, integration preparation, interface parameters, and examples.

The integration workflow constraints are divided into three steps:

  1. Integration Information Gathering: Read documentation on SDK selection and signing methods (recommending RSA2 / SHA256WithRSA).
  2. Obtain Product Integration Documentation: Based on the routed product, read the quick start, interface list, asynchronous notifications, and precautions. Also, read the integration specifications and public error code descriptions.
  3. Integration Verification: Before development and deployment, check items such as signature generation/verification, asynchronous notifications, and exception handling against the verification checklist.

Security Red Lines and Limitations

The Skill lists security red lines for payment integration, including: Private keys must not be stored on the client side, written to logs, or committed to public repositories; Synchronous results on the frontend are not trustworthy; Users must not be asked to repay before the result is confirmed; Asynchronous notifications must be verified for signature first.

Explicit limitations include: Support for merchant profit-sharing product integration is not included; Merchant Deduction only supports the recurring deduction mode, and user-initiated password-free payment scenarios are currently not supported; It is recommended to prioritize using the sandbox gateway https://openapi-sandbox.dl.alipaydev.com/gateway.do during the testing phase, while the production environment is https://openapi.alipay.com/gateway.do.

Integration Verification Checklist

The references/checklist.md in the package provides verification items for keys and security, asynchronous notifications, payment result processing, refunds, and pre-launch switching. It also includes an integration result verification template (Pass / Fail / Partial Pass / Not Applicable), facilitating the Agent to output structured self-check conclusions during the later stages of integration.

Installation and Activation

The installation instructions provided on the SkillHub page are: Instruct the Agent to install the coordinate @user_944a3ade/alipay-payment-integration-v3 according to the SkillHub Installation Guide.

If the skillhub CLI is already available on the machine, you can first check the version:

command -v skillhub && skillhub --version

If not installed, you can install it using the official script (full installation or CLI only, see Section 1 of the installation documentation). When installing the skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ which may not be recognized.

skillhub install alipay-payment-integration-v3 --namespace user_944a3ade --dir <skills directory>

Common skills directories for Agents (from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Alternatively, you can send the following prompt to an AI client that supports Skills, allowing the Agent to complete the installation following the installation documentation:

Please install `@user_944a3ade/alipay-payment-integration-v3` based on https://skillhub.cn/install/skillhub.md.

After installation is complete, restart or refresh the skill list as required by your client to enable the Skill.

Typical Usage

The trigger scenarios declared in the Skill’s description include: Users mentioning “integrate Alipay,” “implement Alipay payment,” “payment integration,” “Alipay collection,” “H5 payment,” “Mini Program payment,” “pre-authorization,” “payment code,” “recurring deduction,” “auto-renewal,” etc.

The typical workflow is as follows:

  1. The user describes the business scenario (or if keywords are ambiguous, the Agent uses the “Clarification Script” within the Skill to ask about offline/online, App, Mini Program, deposits, subscriptions, etc.).
  2. The Agent selects the product and core API based on the routing table and uses curl to access the corresponding online documentation URL (the Skill contains documentation link examples for Face-to-Face Payment, Order Code, etc.).
  3. Before writing code or answering integration questions, complete the reading of mandatory documents such as SDK selection, signing methods, integration specifications, and asynchronous notifications.
  4. In the later stages of integration or before going live, output the verification template according to references/checklist.md and mark risk items.

Documentation fetching example (from the Skill body):

# Get Face-to-Face Payment main documentation
curl -sL "https://ideservice.alipay.com/cms/site/0izcu3"

Applicable Scenarios and Notes

Who is it for

  • Developers who need to perform multi-scenario Alipay integration in Agent environments such as Cursor, Claude Code, and Codex.
  • Teams that want the Agent to read official online documentation before generating code, rather than guessing parameters based solely on static snippets.
  • Projects that wish to use a unified checklist to verify signature verification, asynchronous notifications, and financial loss prevention items before joint debugging and launch.

Usage Notes

  • The Skill emphasizes that documentation is dynamically updated; every integration should be based on the current page fetched via curl. The verification checklist results are for reference only; the final authority is the latest documentation on the Alipay Open Platform.
  • The community Skill has a rating of 100000 and 1031 downloads on SkillHub (based on SkillHub page scraped data). Keys, APPIDs, and gateway environments related to payments must be configured by the developer independently on the Open Platform. The Skill does not replace compliance and security audits.
  • The Merchant Deduction product description in the Skill mentions a product upgrade on April 2, 2026, covering only the latest version of the integration path; scenarios involving profit-sharing or partial deductions require checking official documentation or contacting Alipay technical support separately.

Conclusion

alipay-payment-integration codifies “which payment product line to choose, which online documents to read first, and which items to check before launch” into a process that Agents can follow. It is suitable as a resident Skill for Alipay integration. Official SkillHub page and API entry:

  • https://www.skillhub.cn/skills/user_944a3ade/alipay-payment-integration-v3
  • https://api.skillhub.cn/user_944a3ade/alipay-payment-integration-v3
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye