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;