Braintree provides services to help merchants accept online and mobile credit card processing.

How to integrate Braintree with Kartra

You will need a Braintree account to complete this guide. Visit Braintree's website to create one.

Create Kartra integration

  1. Go to Settings > Integrations
  2. Click + Integration in the top right
  3. In the Providers window, select Braintree and click Next

Integration Braintree with Kartra

The following details are needed from your Braintree account to complete the integration:

  1. Merchant ID
  2. Public key
  3. Private key
  4. Tokenization key

Log in to your Braintree account:

  1. Click the gear icon in the top right corner of your account dashboard to access the menu
  2. Select API > Keys
    Braintree interface showing API and Tokenization keys
  3. Locate API Keys and click View. If you do not have a key, click Generate a New API Key to create one first.
    • Copy the Public key, the Private key, and the Merchant ID
    • Go back to your Kartra account and paste each entry into the corresponding field in the integration screen
  4. Locate Tokenization Keys. If you do not have a key, click Generate a New Tokenization Key to create one.
    • Copy the Tokenization key
    • Go back to Kartra and paste it into the corresponding field in the integration screen

In your Kartra account:

  1. Review the fields in the Braintree integration screen to ensure they are all correct
  2. Click Create in the top right corner to save the integration
  3. On the success screen, copy the Instant Payment Notification (IPN) URL to add to Braintree

Add the Kartra IPN webhook to Braintree

Go back to your Braintree account:

  1. Click the gear icon in the top right corner of your account dashboard to access the menu
  2. Select API > Webhooks
  3. Click Create New Webhook
    • In the Destination URL field, paste the Kartra IPN URL: 
    • https://app.kartra.com/notifications/braintree
    • Under Notifications, select all options under the Subscriptions subheader. No other notifications will be displayed in your Kartra account.
    • Click Create Webhook at the bottom of the page to save it.

Add a Kartra IPN to Braintree as a webhook