跳到正文
cccskills
免费在 GitHub 公开中文介绍

build-a-stripe-integration

依据 Stripe 官方文档和 API 参数定义实现支付、订阅、发票及 Webhook 集成,涵盖产品选择、沙盒测试和事件处理,并通过 Webhook 判断支付与订阅状态。

原文查看原文说明

Write Stripe code against what the API does today — plan the product shape, confirm every parameter from Stripe's own docs and schemas, and keep the agent in a sandbox. Use when adding checkout, billing, subscriptions, invoicing, or webhooks to a codebase, or when debugging Stripe integration code that compiles but behaves wrong.

ParadevAI/Paradev星标 15,720(GitHub 15,720 + cccskills 0)
集成工具Stripe

实测评分 未实测

查看安装方法

适用场景

  • 选择定期扣费产品
  • 实现 Checkout 或发票处理
  • 排查行为异常的 Stripe 集成
  • 验证续费并实现 Webhook

中文介绍

功能

此技能用于实现 Stripe 支付、订阅、发票和 Webhook 集成。它会根据需求选择 Checkout、Billing 或 Invoicing 等产品,并在编写代码前查阅最新的官方文档和 API 参数定义。它会确认参数所属的接口及嵌套对象结构,而不是依赖记忆编写调用。

适用场景

添加支付功能,或排查能够编译但运行结果不符合预期的集成时,可以使用此技能。它也适用于验证订阅续费,以及设计依据支付事件变更用户访问权限的处理方式。

使用示例

  • “请为月度扣费选择合适的 Stripe 产品并实现它。”
  • “请依据官方文档核对这次 API 调用的参数。”
  • “请加入 Webhook 签名验证和重复事件处理。”

注意事项

此技能依赖 Stripe 实现规划、文档搜索和 API 定义查询工具。开发时使用沙盒账户和测试卡;续费等与时间相关的行为通过测试时钟验证。秘密密钥应放在环境变量中。支付状态以 Webhook 事件为准,并需验证签名、处理重复事件和乱序事件。金额使用该币种最小单位的整数。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好资料明确沙盒、环境变量密钥、Webhook 验签及重复事件处理。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足需要 Stripe 工具和沙盒,但未说明连接配置步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月29日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md4.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Confirm the API, do not recall it

Stripe's API is large, versioned, and still moving. Model memory of it is a snapshot of whatever was true at training time, and the failure mode is not a compile error: it is a field that is accepted and quietly ignored. Every parameter you write should have come from a tool call in this session.

1. Pick the product before the endpoint

Run stripe_implementation_planner with what the integration has to do. The first decision is which Stripe product owns the flow, and it is hard to reverse:

  • A one-off payment with a page Stripe hosts is Checkout.
  • A one-off payment inside your own UI is either embedded Checkout or PaymentIntents with Elements. Pick on how much of the checkout behavior you want Stripe to own, not on where the form renders; staying inside your UI does not oblige you to build the flow yourself.
  • Anything recurring is Billing, with prices and subscriptions, not a payment you re-run on a timer.
  • Charging after the fact with terms is Invoicing.

Writing a custom recurring charge loop on top of PaymentIntents is the common wrong turn, and it costs retries, proration, tax, and the customer portal.

2. Read the current docs, then cite them

search_stripe_documentation before you write the first line, and link what you used. If a doc disagrees with what you expected, the doc is right. Watch for guidance that changed: the parameter that moved, the field that is now a nested object, the method that is superseded.

3. Get parameters from the schema, never from memory

stripe_api_search finds the method, stripe_api_details gives its real parameters and types. Do this even for calls you are sure of.

A misspelled parameter is usually the easy case: Stripe answers a name it does not recognize with an invalid_request_error naming the field, so you normally find out at once. Normally, not always, because what an endpoint accepts is the endpoint's business and the docs promise no blanket rule. The expensive case is a parameter that is real but wrong here, and it has three shapes. A field that belongs to a sibling endpoint. A field nested at the wrong level, where Stripe sees the flat name as unknown and the value you meant never arrives. And a field that is accepted and does something other than what its name suggests, which no error can catch for you. The schema is what separates the three.

4. Stay in a sandbox

Create nothing in live mode while building. Use a sandbox account and test cards. For anything time-based, such as a trial ending or a renewal, create a test clock and move it, instead of waiting or faking dates in your own code. Test clocks are the only honest way to prove renewal logic works.

5. Make webhooks the source of truth

A browser returning from Checkout proves the browser came back, nothing more. Fulfilment, entitlement, and subscription state belong to webhook events. Verify the signature, respond quickly, and make the handler idempotent: Stripe retries, and events can arrive out of order. An integration that grants access on a redirect is an integration that grants access to anyone who can replay a URL.

6. Keep keys out of the code

Secret keys live in the environment, never in a repo, a client bundle, or a log line. When adding a new call path, read how the codebase already talks to Stripe and extend that path rather than opening a second one with its own key handling.

Anti-patterns

  • Recalling a parameter list. Confirm it. A wrong name errors loudly; a wrong nesting or the right name from the wrong endpoint does not.
  • Rolling your own recurring billing. Proration, tax, dunning, and the portal are the product you are skipping.
  • Trusting the redirect. The webhook is the event; the redirect is a hint.
  • Storing card data. Hand it to Stripe and keep its reference. For a payment you will make again later that reference is a PaymentMethod saved on a Customer, set up with a SetupIntent or setup_future_usage, not a Token: a Token is single use, so reusing one fails on the second charge. Taking card data yourself changes your compliance scope.
  • Amounts as floats. Stripe takes integers in the smallest currency unit, and currencies with no minor unit break a hardcoded divide by 100.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

10x

免费有简介

检查 Superset 的使用情况,找出适合当前工作方式但尚未使用的功能,给出建议并介绍选项;用户选定后,可协助设置定时运行、并行工作区或共享任务等功能。

  • 查找尚未使用的 Superset 功能
  • 设置定时运行的智能体
  • 在多个工作区并行处理任务
ParadevAI/Paradev1.6万2026年10月29日 更新

automate

免费有简介

把重复任务配置为 Superset 自动化,整理智能体指令、定时或事件触发条件及运行工作区。经明确确认后创建设置,检查已保存的条件,并查看首次运行结果以调整指令。

  • 按日或按周运行任务
  • GitHub 新建拉取请求时启动任务
  • 收到 Slack 指定表情反应时触发
ParadevAI/Paradev1.6万2026年10月29日 更新

browser

免费有简介

通过 Superset 工作区的浏览器查看网页、点击、输入并检查截图或控制台信息,可用于预览运行中的网页应用、检查界面操作和表单流程。

  • 预览本地网页应用
  • 截取页面图像
  • 查看控制台错误
ParadevAI/Paradev1.6万2026年10月29日 更新

cdp-verification

免费有简介

通过 Chrome DevTools Protocol 操作正在运行的 Electron 桌面应用,复现界面问题并验证修改。按实际操作流程检查页面跳转,记录截图,并对照路由、滚动位置、焦点元素和保存状态等信息。

  • 在运行中的应用里复现界面问题
  • 检查修复后的页面行为
  • 验证包含页面跳转的操作流程
ParadevAI/Paradev1.6万2026年10月29日 更新

ci-triage

免费有简介

分析 GitHub Actions 失败日志,定位最早的有效错误,区分代码缺陷、环境问题、间歇性失败和原有故障,并对照基准分支说明失败与 PR 的关系及后续处理建议。

  • 调查 PR 检查失败原因
  • 区分不稳定测试与代码缺陷
  • 确认基准分支是否已有故障
ParadevAI/Paradev1.6万2026年10月29日 更新

computer

免费有简介

读取真实桌面画面,识别控件并执行点击、输入、菜单选择和窗口排列,每次操作后检查结果。可用于更改设置、操作应用,以及通过已登录的系统浏览器核验完整流程。

  • 更改桌面设置
  • 在应用中保存或输入文字
  • 查看画面或排列窗口
ParadevAI/Paradev1.6万2026年10月29日 更新

查看 ParadevAI 的全部技能

报告此技能的问题