create customer

This commit is contained in:
Alex Holliday committed 2025-12-01 03:45:57 +00:00
1 parent 7b207f2ccb
commit 01c0e9ef4d
11 files changed
+159 -14

No files matched your search

+2 -2
View File
@@ -20,10 +20,10 @@ const BillingPage = () => {
const selectedPlan = user?.entitlements?.plan || null;
const handlePlanClick = async (planKey: PlanKey) => {
const result = await post("/billing/subscribe", { plan: planKey });
const result = await post("/billing/subscribe", { planKey });
const redirectUrl = result?.data?.redirectUrl;
if (redirectUrl) {
window.location.href = redirectUrl;
window.location = redirectUrl;
}
};
+5
View File
@@ -0,0 +1,5 @@
const BillingSuccessPage = () => {
return "Great";
};
export default BillingSuccessPage;
+4 -1
View File
@@ -51,9 +51,11 @@ import ExportPage from "@/pages/export/Export";
import NoTeam from "@/pages/errors/NoTeam";
import NotFound from "@/pages/errors/NotFound";
import BillingPage from "@/pages/billing/Billing";
import BillingSuccessPage from "@/pages/billing/Success";
import RootLayout from "@/components/layouts/RootLayout";
import { ProtectedRoute } from "@/components/protected-route";
import BillingPage from "@/pages/billing/Billing";
const Router = () => {
return (
@@ -143,6 +145,7 @@ const Router = () => {
<Route path="profile" element={<ProfilePage />} />
<Route path="export" element={<ExportPage />} />
<Route path="billing" element={<BillingPage />} />
<Route path="billing/success" element={<BillingSuccessPage />} />
</Route>
<Route path="no-team" element={<NoTeam />} />
<Route path="*" element={<NotFound />} />