Skip to main content
Braintree keeps Sandbox and Production completely separate. A Merchant ID and API key created in one environment never work in the other, so create and copy your credentials in the environment (Sandbox or Production) this StackOne connection uses.

Sign in to the Braintree Control Panel

Your Merchant ID, Public Key and Private Key all come from the Braintree Control Panel.
Start by signing in to the environment you are connecting.

1

Sign in to the Control Panel

Open the Braintree Control Panel for your environment. On the Log into Sandbox (or production) screen, enter your Username and Password, then click Log In.

  • Production — Braintree production Control Panel
  • Sandbox — Braintree sandbox Control Panel
  • If your team signs in through PayPal or a corporate domain, use Log In With PayPal or Log in with SSO on the same screen.
  • If a cookie consent banner appears, click Accept or Decline to dismiss it.
  • If the login screen appears even though you are already signed in, sign in again to reach the Control Panel home page.
Braintree sandbox login screen with the Username field, Password field and Log In button highlighted.

Find your Merchant ID

The Merchant ID identifies your whole Braintree gateway account and lives on the Business page.

1

Open the settings menu

In the top-right corner of the Control Panel, click the settings menu gear icon.

  • The menu lists Team, API, Fraud Management, Account Settings, Business, OAuth and Audit Logs.
Braintree Control Panel home page with the settings gear icon in the top-right corner highlighted.
2

Open the Business page

In the settings menu, select Business. You will come back to this menu later for API.

  • The Business page opens on the Merchant Accounts tab.
Open Braintree settings menu with the API and Business entries highlighted.
3

Copy your Merchant ID

Under the Merchant ID heading, click the copy icon to the right of the value (its tooltip reads Copy).

  • Braintree describes this value as a unique identifier for your entire gateway account, required to connect your API calls to the Braintree gateway.
  • Paste it into the Merchant ID field in StackOne Hub.
  • Do not use a Merchant Account ID from the Merchant Accounts table further down the page — that identifies one merchant account inside your gateway, not the gateway itself.
Braintree Business page with the Merchant ID value redacted and the Copy icon next to it highlighted.

Create and copy your API keys

The Public Key and Private Key are the username and password Braintree uses for server-side API access. Both live on the API page of the settings area.

1

Open the API keys page

In the top navigation bar of the settings area, click API, and stay on the Keys tab.

  • Braintree lists your server credentials under API Keys, and notes that they are for server use only and should not be shared.
  • If the API Keys table is empty, click Generate New API Key to create a key pair.
Braintree API Keys page with the Generate New API Key button highlighted.
2

Open your private key

In the API Keys table, find your key and click View in the Private Key column.

  • The Public Key is shown directly in the Public Key column of the same row.
  • Each API key belongs to the user who created it, so use a key that belongs to the user account you want StackOne to act as.
  • An API key has the same permissions as its owner’s user role. A key from a user with a restricted role connects successfully but fails on actions that role cannot perform, so use a key owned by an Account Admin or a role with access to the data you need.
Braintree API Keys table with the Public Key value and the View link in the Private Key column highlighted.
3

Copy your credentials into StackOne Hub

The Client Library Key page shows Public Key, Private Key, Environment and
Merchant ID together. Copy each value into the matching field in StackOne Hub.

  • Merchant ID — your Braintree gateway account identifier; paste it into the Merchant ID field in StackOne Hub.
  • Public Key — the username half of the Basic Auth pair; paste it into the Public Key field in StackOne Hub.
  • Private Key — the password half of the Basic Auth pair; paste it into the Private Key field in StackOne Hub and treat it like a password.
  • Environment — shows whether this key belongs to sandbox or production. It must match the environment this StackOne connection uses; there is no Environment field to fill in.
  • Native Webhook URL — read-only and filled in by StackOne. Leave it as is; you only need it later if you set up Braintree webhooks.
Braintree Client Library Key page with the Public Key, Private Key and Merchant ID values highlighted and redacted.

Linking the Account from the Hub

1

Navigate to the Hub

Use one of the three Linking Account Methods to access the Hub.
2

Fill out the fields

Fill out the following fields using details from your provider:
  • Merchant ID
  • Public Key
  • Private Key
3

Connect

  • Click Connect
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup

If the account linking is successful, you will see the newly linked account on your Accounts page.

Next Steps

Webhooks setup

Configure receiving Events for Braintree into StackOne.