Stripe 集成
设置
- 在 stripe.com 创建一个 Stripe 账户
- 在 Stripe 仪表板中,前往 开发者 → API 密钥
- 复制你的 可发布密钥 和 密钥
- 在管理后台,前往 设置 → 支付网关 → Stripe
- 粘贴两个密钥并设置为 激活
Webhooks
Stripe webhooks 通知你的商店异步事件(例如,成功支付、订阅续费)。在你的 Stripe 仪表板中设置 webhook URL:
https://your-store.com/api/payment/webhooks/stripe
启用事件: payment_intent.succeeded, payment_intent.payment_failed, invoice.paid, customer.subscription.deleted.
支持的支付方式
一旦 Stripe 激活,客户可以使用:
- Visa、Mastercard、美国运通及其他卡
- Apple Pay(在 Safari/iOS 上)
- Google Pay(在 Chrome/Android 上)
- Link(Stripe 的保存支付网络)
最后更新:11/7/2026

