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.

update stripe callback URL

Steven Tey1d00affb9725
diff --git a/apps/web/app/api/stripe/connect/callback/route.ts b/apps/web/app/api/stripe/connect/callback/route.ts
index 8d8f2e4043..28700670a2 100644
--- a/apps/web/app/api/stripe/connect/callback/route.ts
+++ b/apps/web/app/api/stripe/connect/callback/route.ts
@@ -55,7 +55,7 @@ export const GET = async (req: NextRequest) => {
redirect(APP_DOMAIN);
}
redirect(
- `${APP_DOMAIN}/${workspace.slug}/settings?stripeConnectError=${error_description}`,
+ `${APP_DOMAIN}/${workspace.slug}/settings/integrations/stripe?stripeConnectError=${error_description}`,
);
} else if (stripeAccountId) {
// Update the workspace with the Stripe Connect ID
@@ -74,7 +74,7 @@ export const GET = async (req: NextRequest) => {
workspaceId: workspace.id,
});
- redirect(`${APP_DOMAIN}/${workspace.slug}/settings`);
+ redirect(`${APP_DOMAIN}/${workspace.slug}/settings/integrations/stripe`);
}
return new Response("Invalid request", { status: 400 });