# How to Integrate Braintree Account with Daton

### Prerequisites

Before we start, ensure you have&#x20;

* An active Daton and Braintree account.
* Access tokens (Public key, private key) and Merchant ID

### Task &#x31;**: Generate an Access token** for the Braintree account

* Access your Braintree account by logging in with your credentials.&#x20;
* Locate the **Settings icon** and click on it. From the dropdown menu, select **'API**' to navigate to the API keys page.&#x20;

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2F5YuNqoyfj2ODLyfSl8sA%2F1Braintree%20API.png?alt=media&#x26;token=337be045-c580-4ce1-b1a0-cd1622f5112c" alt=""><figcaption></figcaption></figure>
* On the API keys page, find the specific API key section and click on the **'view'** button under the Private Key column. You will be able to retrieve your public key, private key, and merchant ID from there. <br>

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FJCmyORPQKTkQiy9fombE%2F2Braintree%20API.png?alt=media&#x26;token=c29d81b6-b9db-442b-9536-fefd8925d4e8" alt=""><figcaption></figcaption></figure>

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FDRcQz8DSx1iUj2qYFJq8%2F3Braintree%20API.png?alt=media&#x26;token=ce5dc31d-a4d7-4a70-9e97-c7534601236d" alt=""><figcaption></figcaption></figure>

Make sure to save these keys as they will be required for establishing the connection between your Braintree account and Daton.

### **Task 2:** ​Integrate Daton with Braintree Account

1. Log in to your [Daton account](https://daton.sarasanalytics.com/u/integrations-list) and search for Braintree in the list of Connectors, then click **Configure**.
2. Enter the following details and click **Authenticate**:&#x20;

   * Integration Name&#x20;
   * Replication Frequency&#x20;
   * Replication Start Date&#x20;

   <div align="left"><figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2Fktwks6g1lC6EzlDQimnr%2FBraintree.png?alt=media&#x26;token=539a7be7-a728-4d5c-87df-d3eff54f378f" alt=""><figcaption></figcaption></figure></div>

   **Note** that the Integration Name will be used to create the integration tables and cannot be modified later.
3. Provide the following Braintree API credentials to **authenticate** the integration:&#x20;

   * Public Key
   * Private Key&#x20;
   * Merchant ID

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FlNLZlTST7hv2jdj13BqT%2FBraintree%20(1).png?alt=media&#x26;token=64fdda8b-cdbf-45ea-939e-e65ddfe8d320" alt=""><figcaption></figcaption></figure>
4. After successful authentication, you will be prompted to choose from the list of available tables. Select the required tables and click **Next**.&#x20;
5. Select the required fields for each table and click **Submit.**&#x20;

   **Note** that you will be prompted to select the destination for your store or shop.
6. Select the destination for your store or shop and click **Confirm**. An integration successful message will be displayed.

## Important Note

* Integrations would begin in the Pending state and change to the Active state once the first job successfully loaded data into the configured warehouse.&#x20;
* Users can check job status and process logs from the integration details page by clicking on the integration name in the active list.&#x20;
* Users can Re-Authenticate, Edit, Clone, Pause, or Delete the integration at any moment by clicking on settings. You can also adjust the frequency and history of the integration.&#x20;
* On the Sources page, click Integration to access each table in your integration. The page also shows the state of each table, the last replicated time, and Reload access buttons.&#x20;
