Build the URL that sends a user to Stripe to connect their existing Stripe
account to your platform (Connect OAuth, Standard accounts). Pure function,
no network call, so it works without an API key.
consturl = buildAuthorizeUrl({ clientId:process.env.STRIPE_CONNECT_CLIENT_ID!, state:csrfToken, // random per attempt; store it server side to check in the callback redirectUri:'https://app.example.com/stripe/callback', }); // redirect the user to `url`
Build the URL that sends a user to Stripe to connect their existing Stripe account to your platform (Connect OAuth, Standard accounts). Pure function, no network call, so it works without an API key.