Add proforma invoice step to subscription checkout

Insert a factor/invoice page between plan selection and payment showing
billing-period choice, line items, and totals before redirecting to the
gateway, moving payment-method selection to where the charge happens.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-05-30 00:29:17 +03:30
parent 639573dfde
commit 09c55669ca
4 changed files with 297 additions and 68 deletions
@@ -9,9 +9,9 @@ import { Badge } from "@/components/ui/badge";
export type PlanId = "Free" | "Pro" | "Business" | "Enterprise";
const PLAN_ORDER: PlanId[] = ["Free", "Pro", "Business", "Enterprise"];
export const PLAN_ORDER: PlanId[] = ["Free", "Pro", "Business", "Enterprise"];
const PRICES: Record<PlanId, number | null> = {
export const PRICES: Record<PlanId, number | null> = {
Free: 0,
Pro: 1_490_000,
Business: 3_490_000,