# Braintree

## 1. How to connect to Braintree?

You can follow the following steps to build a connection with your Braintree account. If you need any helps to set up your integration, please [contact us](https://docs.acho.io/master#how-to-contact-us).

1\. Go to the **Resources** page and click the **Add Resource** button.

2\. In the "Select a data source" step, select Braintree under **Apps**.

3\. In the "Configure the data source" step, enter the following information:&#x20;

* **`Merchant ID:`** The unique identifier for your entire gateway account
* **`Public Key:`** the value of your user-specific public identifier.
* **`Private Key:`** The value of your user-specific private identifier. \
  (See [here](#2.-how-to-get-credentials-for-braintree) to find your Merchant ID, Public Key, and Private Key.)

4\. In the "Select the tables", choose tables that you want to connect. See [here](#4.-available-tables) for more details on each table.

5\. Click **Finish Setup**. You will see a  <img src="https://3574406564-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MB_fx7PCUqvFEdrucJC%2F-MgBh5PshcmRFk38itib%2F-MgBo4LSmdK4OS-NqLZy%2Fsyncing.png?alt=media&#x26;token=452494f9-e4be-48fa-9644-bee7d969c46c" alt="" data-size="line"> icon next to your Braintree resource. It may take a few minutes to several hours depending on the data size and the number of your tables. Once your APP's data is ready, you will receive a notification email.&#x20;

## 2. How to get credentials for Braintree?

To allow Acho to connect to your Mailchimp account, you have to generate an access token. Here are the instructions about how to acquire it.

1\. Log into either the [production Control Panel](https://www.braintreegateway.com/login) or the [sandbox Control Panel](https://sandbox.braintreegateway.com/login), depending on which environment you are working in. (The example is in the Sandbox environment.)

2\. Now, you can see your credentials under the section of **Keys & Configuration**. Copy your **Merchant ID**, **Public Key**, and **Private Key** and paste them to Acho's configuration page.

![](https://3574406564-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MB_fx7PCUqvFEdrucJC%2F-MgHhVQJmGd0DovuVUxl%2F-MgHmHL0xS-x05lvI49G%2Fimage.png?alt=media\&token=00164c77-5e41-4d9f-a278-734ebb1636ae)

## 3. How to set up Data Sync?

Acho supports creating schedulers to retrieve the latest data from your Braintree account at a certain time interval. To see more details, you can visit [here](https://docs.acho.io/data-sync/untitled).

## 4. Available Tables

* [Customers](https://developer.paypal.com/braintree/docs/reference/request/customer/search)
* [Discounts](https://developer.paypal.com/braintree/docs/reference/response/discount)
* [Disputes](https://developer.paypal.com/braintree/docs/reference/request/dispute/search)
* [Transactions](https://developers.braintreepayments.com/reference/response/transaction/python)
* [Merchant Accounts](https://developer.paypal.com/braintree/docs/reference/response/merchant-account)
* [Plans](https://developer.paypal.com/braintree/docs/reference/response/plan)
* [Subscriptions](https://developer.paypal.com/braintree/docs/reference/response/subscription)
