feat(payment): connect payment service flow

This commit is contained in:
2026-06-18 15:40:59 +08:00
parent 35c30ac31e
commit a347b39001
34 changed files with 759 additions and 889 deletions
+2 -6
View File
@@ -5,12 +5,8 @@
*
* 原始 Dart: lib/ui/subscription/...
*
* Stripe 接入新增字段:
* - `stripeProductId` / `stripePriceId`Stripe 后台创建 Product + Price 后拿到的 id
* - `voiceMinutesPerDay`:该套餐每天给用户的语音分钟数(订阅后每天补充)
*
* 注:stripeProductId / stripePriceId 没有默认值 —— 为避免硬编码真实 id,由 env 动态注入(见 `src/lib/stripe/stripe-products.ts`
* 本常量表只是 UI 形状 + 业务字段的单一真相源
* 当前订阅页优先使用后端 `/api/payment/plans` 返回的套餐。
* 本常量仅保留给旧 UI / fallback 代码参考。
*/
export type SubscriptionPlanId = "monthly" | "quarterly" | "annual";