> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect GoCardless with OAuth 2.0 – StackOne Hub

> Link a GoCardless account in the StackOne Hub using OAuth 2.0. End-user guide to authorize the integration and start using GoCardless actions.

<Warning>Ensure you select the correct environment (Production or Sandbox) matching where your OAuth app was created.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Select your environment</h2>

  <p>GoCardless uses separate environments for sandbox and production. Your OAuth app credentials are tied to one environment.</p>

  <Steps>
    <Step title="Choose the correct environment">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>When connecting in StackOne, select the environment matching your OAuth app.</p>

        <ul>
          <li><strong>Production</strong> - For live payment processing</li>
          <li><strong>Sandbox</strong> - For testing and development</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
