@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Function buildAuthorizeUrl

    • 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.

      Parameters

      Returns string

      When clientId or state is missing

      const url = 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`