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

# Braintree

> Learn how to connect Braintree to Slicker

### Prerequisites

Slicker integrates with Braintree via their API. Credentials for this API are created via Braintree's Control Panel.

### Create credentials

Follow the [official Braintree documentation for creating API keys](https://developer.paypal.com/braintree/articles/control-panel/important-gateway-credentials#api-keys).
In the end you will need to have the following:

* Public Key
* Private Key
* Merchant ID

### Create integration in Slicker

1. Go to Slicker's [new integration page](https://app.slickerhq.com/integrations/new).
2. Select `Braintree` from the list of integrations.
3. Give the integration a name and description to help you identify it later.
4. Enable `Sandbox mode` to connect a Braintree sandbox account, or leave it off for production.
5. Enter the merchant ID and the public/private key pair from the selected environment's Control Panel.
6. Click the `Submit` button to create the integration.

The selected environment is used for credential validation and payment syncing, and is shown on the integration details page.
For API integrations, set the `integration.config.braintreeConfig.sandbox` query parameter to `true` for sandbox or `false` for production.
Omitting this field defaults to production when creating an integration and preserves the existing environment when updating one.

### Troubleshooting

On integration creation, Slicker will attempt to connect to Braintree using the provided API key.
If the connection fails, you will see an error message like the one below.
Please double-check that the provided credentials match the selected environment, make sure they have the correct permissions, and try again.

![Failed integration creation message](https://mintcdn.com/slicker/HZZPLdXP1aKdz94r/images/integrations/integration-failure.png?fit=max\&auto=format\&n=HZZPLdXP1aKdz94r\&q=85\&s=59f6f532473345be5919699e5de59427)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.