支付集成
支付能力是可选的。启用后,用户可以通过 Stripe Checkout 升级 Premium,并解锁更高的 API Key 和请求限额。组成部分
- Stripe Checkout 创建支付会话。
- Stripe webhook 接收支付状态。
- Supabase 保存用户套餐状态。
- 前端根据套餐状态显示 Premium 能力。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用 Stripe Checkout 和 webhook 激活 Premium 能力。
STRIPE_SECRET_KEY=...
STRIPE_WEBHOOK_SECRET=...
SUPABASE_SERVICE_ROLE_KEY=...