Who should use this guideThis guide is intended for merchants who:
- Use Payrails as a payment orchestrator
- Use Braintree for payments
- Are approved to process raw card data
Create and configure a Braintree integration in Payrails
- Log in to the Payrails portal.
- Go to Settings → Integrations.
- Select Add instance to create a new integration configuration.
- Select the Workspaces where this integration should be available.
About workspacesWorkspaces determine where this integration can be used. They allow you to isolate provider setups by region or business line, or share a single configuration across multiple environments.
Step 1: Choose the integration type
- Select Payment and continue to the next step.

Step 2: Choose the provider
- Select Braintree and continue to the next step.

Step 3: Configure your Braintree integration
Integration instance name
An integration instance is a specific payment provider setup in Payrails. You can create multiple instances for each provider based on region, currency, or business needs. Choose a clear, consistent name, as it is used in routing.In Payrails
- Enter a clear and descriptive Instance name.

Account details
In Braintree- Log in to the Braintree Control Panel.
- Navigate to Merchant Configuration → Integrations.
- Select the Braintree integration you want to manage and choose Manage Account.
- Define the Payrails account name associated with the Provider ID.

Acquirer Merchant IDs and BINsAcquirer Merchant IDs (sometimes referred to as BINs or SE numbers) might not be available directly in the Braintree dashboard.For example:
- American Express: The Acquirer Merchant ID is provided directly by American Express or your acquiring bank during onboarding.
API credentials
In Braintree- Go to Settings → API.
- Generate or copy the Public Key and Private Key.
- Enter the Public Key and Private Key in the corresponding fields.
- Select the payment methods that should be enabled for this account.
Webhooks
Configure webhooks in Braintree
- In the Braintree Control Panel, navigate to Webhooks.
-
Add a new webhook endpoint using the Payrails notification URL.
- Staging
- Production
- Staging
- Select all required event types.
- Save and activate the webhook.
Configure notifications in Payrails
- Navigate to Notifications.

- Select New URL.

- Select the relevant workspace.
- Paste the webhook URL.
- Generate an HMAC key.
- Select Create.

Test webhooks
- Use Braintree’s webhook testing tools to send test events.
- Confirm events are received and processed successfully in Payrails.
Payment methods
In Payrails- Select the Braintree payment methods you want to enable for this integration.

Enable the integration
In Payrails- Select Save account to enable the integration.

Next steps
- Run a test payment using a Braintree test card.
- Verify that:
- The payment appears in Braintree.
- The payment status updates correctly in Payrails.
- Once verified in test mode, repeat the setup in live mode.