feat(payment): implement coffee tip plans and update payment flow
This commit is contained in:
@@ -7,7 +7,10 @@ import type {
|
||||
PaymentPlan,
|
||||
} from "@/data/dto/payment";
|
||||
|
||||
export type PaymentPlanCatalog = "default" | "tip";
|
||||
|
||||
export interface PaymentState {
|
||||
planCatalog: PaymentPlanCatalog;
|
||||
plans: PaymentPlan[];
|
||||
isFirstRecharge: boolean;
|
||||
selectedPlanId: string;
|
||||
@@ -23,6 +26,7 @@ export interface PaymentState {
|
||||
}
|
||||
|
||||
export const initialState: PaymentState = {
|
||||
planCatalog: "default",
|
||||
plans: [],
|
||||
isFirstRecharge: false,
|
||||
selectedPlanId: "",
|
||||
|
||||
Reference in New Issue
Block a user