Step 1 - Create a Limited Access Role in Your Braintree Account
For added security of your data, we recommend that you log into your Braintree admin account and create a limited access API key for use with Pagos:Log into your Braintree production environment as an admin and follow the process outlined in Braintree’s documentation to create a new role. Name it something specific to its use, like Pagos Dashboard.
Under Rights Granted for this new role, enable only the following permissions:
- Transactions
- Download Transactions with Masked Payment Data
- Reporting
- Create, Run, and Download Reports
- View Dashboard Graphs
- Recurring Billing
- Download Subscription Records
- View Modifications
- View Subscription Plans
- View Subscriptions
- Search Subscriptions
- Dispute Management
- View, manage and contest disputes
- Webhooks
- Manage Webhooks (Add/Edit/Delete)
- Statements
- View Statements
- Read-Only Access
- View Merchant Accounts
- View Payment Methods
- View Transactions
- View Verifications
- Download Files
- Search
- Search Transactions
- Search Verifications
Step 2 - Create an API User in Your Braintree Account
After you create a limited access role, create an API user in your Braintree dashboard:Follow the process outlined in Braintree’s documentation to create a new user.
Under Merchant Accounts click the checkbox beside all of the merchant accounts for which you want data to flow to Pagos.
Locate and save the following values for future use:
Step 3 - Add a New Data Connection to Your Pagos Account
To pull in Braintree data to Pagos, you’ll need to add a new data connection in your Pagos account:Fill in the following fields using the saved values from Step 2:
- Data Connection Name - This value is used for display and identification on charts, and can be whatever you prefer
- Merchant ID
- Public Key
- Private Key
Step 4 - Create a Webhook
After you enter your Braintree details in the Data Connections page and click Add Data Connection, you’ll be prompted to create a webhook:Log into your Braintree limited access user account and follow the process outlined in Braintree’s documentation to create a webhook.
On the New Webhook screen, paste the destination URL you copied from your Pagos account into the Destination URL field.
Step 5 (Optional) - Create a User for Sending Fee Data to Pagos
To send your Braintree fee data to Pagos, you’ll need to create another Braintree role and user specifically for this purpose:Follow the instructions under Step 1 to create a second role.
Under Rights Granted for this new role, enable only the following permissions:
- Statements
- View Statements
- Read-Only Access
- Download Files
- Reporting
- Create, Run, and Download Reports
Create a new user that you can share with Pagos.
Under Roles, click the checkbox beside your Fee Data role, and under Merchant Accounts click the checkbox beside all of the merchant accounts for which you want data to flow to Pagos.
Step 6 - Allowlist the Pagos IPs (If Necessary)
If you have network restrictions in place on your Braintree account, you’ll need to allowlist the Pagos IP addresses so we can receive your payments data without interruption. Following the instructions in Braintree’s documentation, allowlist the following IP addresses:- 3.224.240.39
- 52.3.60.58
- 54.210.17.78
- 52.55.42.147