Skip to content

Commit 3e7e8bb

Browse files
committed
fix: checkout url
1 parent a827b3c commit 3e7e8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trpc/routers/billing-router/procedures/checkout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const checkoutProcedure = withAuth
3838
},
3939
],
4040
mode: priceType === "recurring" ? "subscription" : "payment",
41-
success_url: env.NEXT_PUBLIC_BASE_URL,
41+
success_url: `${env.NEXT_PUBLIC_BASE_URL}/${session.user.companyPublicId}/settings/billing`,
4242
};
4343

4444
let stripeSession: Stripe.Checkout.Session | undefined;

0 commit comments

Comments
 (0)