We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a827b3c commit 3e7e8bbCopy full SHA for 3e7e8bb
src/trpc/routers/billing-router/procedures/checkout.ts
@@ -38,7 +38,7 @@ export const checkoutProcedure = withAuth
38
},
39
],
40
mode: priceType === "recurring" ? "subscription" : "payment",
41
- success_url: env.NEXT_PUBLIC_BASE_URL,
+ success_url: `${env.NEXT_PUBLIC_BASE_URL}/${session.user.companyPublicId}/settings/billing`,
42
};
43
44
let stripeSession: Stripe.Checkout.Session | undefined;
0 commit comments