fix(payment): consume first recharge offer after payment

This commit is contained in:
2026-07-03 10:54:46 +08:00
parent bb6ebbae7e
commit 489554cd78
13 changed files with 137 additions and 27 deletions
-3
View File
@@ -2,7 +2,6 @@
* Payment 状态机:State 形状 + 初始值
*/
import type {
FirstRechargeOffer,
PayChannel,
PaymentOrderStatus,
PaymentPlan,
@@ -11,7 +10,6 @@ import type {
export interface PaymentState {
plans: PaymentPlan[];
isFirstRecharge: boolean;
firstRechargeOffer: FirstRechargeOffer | null;
selectedPlanId: string;
payChannel: PayChannel;
autoRenew: boolean;
@@ -27,7 +25,6 @@ export interface PaymentState {
export const initialState: PaymentState = {
plans: [],
isFirstRecharge: false,
firstRechargeOffer: null,
selectedPlanId: "",
payChannel: "stripe",
autoRenew: true,