# Braintree

### Step 1 - Activate Braintree <a href="#braintree-step1-activatebraintree" id="braintree-step1-activatebraintree"></a>

Go to **Gateways** → **Gateway Integrations** and select Braintree. Click on **+ Activate**.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FQxPa4QkbWLOgH7L6XQDx%2Fimage.png?alt=media&#x26;token=e905a035-6847-4087-a54c-3ddbce257ae2" alt=""><figcaption></figcaption></figure>

### Step 2 - Add your Braintree credentials <a href="#braintree-step2-addyourbraintreecredentials" id="braintree-step2-addyourbraintreecredentials"></a>

Now the **Create New Gateway** page will appear. Double check that Braintree is selected in the gateway field and fill in the rest of the info on the gateway profile.

Obtain **merchant\_id**, **public\_key**, and **private\_key** from Braintree (additional notes on this below)

Obtain **merchant\_acct\_id** from Braintree.  This may be optional depending on your setup at Braintree.  The merchant account ID is a unique identifier for a specific merchant account at Braintree. It is used to specify which merchant account to use when creating a transaction. It is not the same value as **merchant\_id**.

Choose to process with Braintree native 3DS using the **secure3DS** box. 3DS requires the checkout page to support [standard redirect handling](https://help.konnektive.com/konnektive-crm/gateway-setup/basic-3ds-instructions).

Check the **storeInVaultOnSuccess** box if you need one-click upsells or recurring billing on this gateway. This enables the customer vault at Braintree.

Choose to **sendProductDetails**

Choose to use Braintree’s test server. Be sure to uncheck **useTestServer** when ready for live traffic.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FIAnQvQYjr2LuDhrAyCEZ%2Fimage.png?alt=media&#x26;token=b3a8d41b-095e-448e-be66-49710e5ae420" alt="" width="375"><figcaption></figcaption></figure>

***

**Here are the steps to get your Braintree keys.**

{% hint style="warning" %}
These steps may change if Braintree's platform is updated.
{% endhint %}

Step 1: Log in to your Braintree account.&#x20;

Step 2: Click on the Settings icon and select ‘API’ from the list that flows down.&#x20;

The API keys page will appear.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FgrY8W6PRio3mztIaAL8b%2FUntitled.png?alt=media&#x26;token=5ff5cea7-ddc4-40ec-987a-fa2ac168cdb6" alt=""><figcaption></figcaption></figure>

Step 3: Under the API keys, click on the ‘view’ button. You can get the public key, private key and merchant id there

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2F2FNjNrRYSwklsX6paTE5%2FUntitled-1.png?alt=media&#x26;token=4b00be14-9988-47b6-975d-39ac1984fb0e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FYPJ8cVIcIMLLsMtzYnrF%2FUntitled.png?alt=media&#x26;token=042954fc-dcee-48d4-90f6-092936fba508" alt=""><figcaption></figcaption></figure>
