Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add custom billing portal

Steven Tey0d2703d9b28f
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/billing/manage/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/billing/manage/route.ts
index a2a0dfd1e5..a94b12c03e 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/billing/manage/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/billing/manage/route.ts
@@ -22,6 +22,7 @@ export const POST = withWorkspace(
try {
const { url } = await stripe.billingPortal.sessions.create({
customer: workspace.stripeId,
+ configuration: "bpc_1UEvGVAlJJEpqkPVpP38ZUNj", // custom configuration for changing billing info only
return_url: `${APP_DOMAIN}/${workspace.slug}/settings/billing`,
});
return NextResponse.json({ url });