mcpField
S
stripe-implementer

stripe-implementer

github.com/shipshitdev开发38194 次安装2 天前更新
代码仓库

关于 stripe-implementer

面向开发者的 Stripe 实施技能,涵盖支付、订阅、Webhook、客户管理和市场平台流程,并说明常见支付路径及密钥、签名和幂等处理实践。

主要功能

  1. 01Checkout Sessions 与 Payment Intents
  2. 02订阅计费流程
  3. 03Webhook 事件处理
  4. 04客户与 Connect 流程
  5. 05密钥、签名和幂等性指南

适用场景

  1. 01接入一次性支付
  2. 02构建定期订阅
  3. 03处理 Stripe Webhook 事件
  4. 04使用 Stripe Connect 实现市场支付

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/shipshitdev/skills --skill stripe-implementer

安装后在 Claude Code 中输入/stripe-implementer确认已加载。

附带文件plugin.jsonreferences/full-guide.md

详细介绍

Stripe 实施指南

适用场景

适用于以下场景:

  • 集成 Stripe 支付
  • 实现订阅计费
  • 设置 Stripe Webhook
  • 管理 Stripe 客户
  • 处理支付意图或结账会话
  • 实现 Stripe Connect 或市场平台功能

快速设置

bun add stripe @stripe/stripe-js
STRIPE_SECRET_KEY=sk_test_...
STRIPE_PUBLISHABLE_KEY=pk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...

关键流程

支付方式
  • 结账会话:推荐用于一次性付款
  • 支付意图:适用于自定义支付流程
  • 订阅:适用于定期计费
Webhook 事件
  • payment_intent.succeeded / payment_intent.payment_failed
  • customer.subscription.created/updated/deleted
  • invoice.payment_succeeded/failed

最佳实践

  • 切勿在客户端暴露密钥
  • 始终验证 Webhook 签名
  • 对关键操作使用幂等键
  • 使用 Stripe CLI 进行测试:stripe listen --forward-to localhost:3000/api/webhooks/stripe

参考资料

评论

支持 Markdown