create customer
This commit is contained in:
1 parent
7b207f2ccb
commit
01c0e9ef4d
11 files changed
+159
-14
No files matched your search
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
const BillingSuccessPage = () => {
|
||||
return "Great";
|
||||
};
|
||||
|
||||
export default BillingSuccessPage;
|
||||
Reference in new issue
Block a user