{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/zh-Hans/payments/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"PayKKa 支付集成 Skill","description":"Learn how to Integration with PayKKa APIs","siteUrl":"https://docs.paykka.com","image":"/assets/logo.df495cc5e94d9633069f202c90e3a52a9aaff809e494405ba215cb8339e0714e.db81178d.png","keywords":"paykka, docs, doc, documentation, apis, api, portal","lang":"en-US"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"paykka-支付集成-skill","__idx":0},"children":["PayKKa 支付集成 Skill"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["PayKKa Payments Skill 为兼容 Agent Skills 的 AI 编程助手提供针对性指导，帮助开发者设计、实现和检查 PayKKa Payments V3 集成。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"下载 Skill"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://static-fe.cb.paykka.com/paykka-doc/paykka-payments.zip"},"children":["下载 paykka-payments.zip"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SHA-256：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["e74ea5bcf9b0da1382872f6ed0d35a6530327f22d275e596c471d52e5a6c8127"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"可以帮你完成什么","__idx":1},"children":["可以帮你完成什么"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["在托管收银台、Drop-in、Component、加密卡和 API-only 模式之间选择合适的接入方案"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["实现 V3 请求签名和响应验签"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["处理 3DS、会话与交易查询以及 Webhook 回调"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["划分浏览器端与服务端职责，保护商户私钥和银行卡数据"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["从安全性、可靠性和生产就绪角度检查现有接入代码"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Skill 用于辅助理解和使用 PayKKa 文档。实际接入仍应以最新 API 文档以及商户账号已开通的能力为准。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"安装到你的-agent-工具","__idx":2},"children":["安装到你的 Agent 工具"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["该压缩包采用 Agent Skills 目录格式，可用于支持 Agent Skills 的工具，包括 Codex、Claude Code、Cursor 及其他兼容工具。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["请根据使用的工具和安装范围选择目录："]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Agent 工具"},"children":["Agent 工具"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"用户级目录"},"children":["用户级目录"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"项目级目录"},"children":["项目级目录"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Codex"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.codex/skills"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".codex/skills"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Claude Code"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.claude/skills"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".claude/skills"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cursor"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.cursor/skills"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".cursor/skills"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["兼容 Agent Skills 的工具"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.agents/skills"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".agents/skills"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["用户级安装可在多个项目中使用该 Skill；项目级安装只对当前项目生效，适合在需要时提交到项目仓库供团队共享。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"macos-或-linux","__idx":3},"children":["macOS 或 Linux"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["请将 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SKILLS_DIR"]}," 设置为你的 Agent 工具使用的目录。以下示例使用通用 Agent Skills 目录："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"SKILLS_DIR=\"$HOME/.agents/skills\"\nmkdir -p \"$SKILLS_DIR\"\ncurl -fL https://static-fe.cb.paykka.com/paykka-doc/paykka-payments.zip \\\n  -o /tmp/paykka-payments.zip\nunzip -o /tmp/paykka-payments.zip -d \"$SKILLS_DIR\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"windows-powershell","__idx":4},"children":["Windows PowerShell"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["请将 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["$skillsDir"]}," 设置为你的 Agent 工具使用的目录。以下示例使用通用 Agent Skills 目录："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"powershell","header":{"controls":{"copy":{}}},"source":"$skillsDir = Join-Path $HOME \".agents\\skills\"\n$archive = Join-Path $env:TEMP \"paykka-payments.zip\"\nNew-Item -ItemType Directory -Force -Path $skillsDir | Out-Null\nInvoke-WebRequest `\n  -Uri \"https://static-fe.cb.paykka.com/paykka-doc/paykka-payments.zip\" `\n  -OutFile $archive\nExpand-Archive -Path $archive -DestinationPath $skillsDir -Force\n","lang":"powershell"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["安装后重启或重新加载你的 Agent 工具，并确认文件位于："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"<skills-directory>/paykka-payments/SKILL.md\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"使用-skill","__idx":5},"children":["使用 Skill"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["兼容的 Agent 工具可以根据你的需求自动选择该 Skill。如需明确调用，请在提示词中写出 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paykka-payments"]},"，然后描述接入需求。建议同时提供期望的收银台形式、支付方式、目标环境和地区，以及前后端技术栈。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["示例提示词："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"使用 paykka-payments skill，为我的 React 和 Java 应用推荐风险最低的收银台接入模式。\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"使用 paykka-payments skill，检查这段 PayKKa Payments V3 Webhook 代码的验签、防重放和幂等处理。\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"使用 paykka-payments skill，在 Sandbox 环境实现托管收银台。后端使用 Spring Boot，前端使用 React。\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"安全提示"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["部署前请检查 AI 生成的接入代码。请勿在浏览器代码中放置商户私钥；除非 PayKKa 已确认商户的 PCI 资质并开通权限，否则不要使用明文银行卡 API。"]}]}]},"headings":[{"value":"PayKKa 支付集成 Skill","id":"paykka-支付集成-skill","depth":1},{"value":"可以帮你完成什么","id":"可以帮你完成什么","depth":2},{"value":"安装到你的 Agent 工具","id":"安装到你的-agent-工具","depth":2},{"value":"macOS 或 Linux","id":"macos-或-linux","depth":3},{"value":"Windows PowerShell","id":"windows-powershell","depth":3},{"value":"使用 Skill","id":"使用-skill","depth":2}],"frontmatter":{"seo":{"title":"PayKKa 支付集成 Skill"}},"lastModified":"2026-11-26T05:57:14.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh-hans/payments/docs/introduction/paykka-payments-skill","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}