C
ChurnRecovery
Get started free
🌿

ChurnRecovery + Braintree

Braintree (a PayPal company) powers billing for many established SaaS businesses. ChurnRecovery's Braintree integration brings modern cancel flow capabilities to the Braintree ecosystem.

Setup time
45 minutes
Difficulty
Medium
Avg save rate
19%
Price
Free

Overview

Braintree is a robust payment platform trusted by mid-market and enterprise SaaS companies. If you're on Braintree, you've probably been missing the cancel flow tooling that Stripe-native companies take for granted — until now.

ChurnRecovery bridges that gap. Our Braintree integration uses webhooks and the Braintree subscription API to catch cancellations, retry failed payments, and show targeted retention offers — all while keeping your existing Braintree setup intact.

What's included

  • Full Braintree Subscription API integration
  • Cancel flow before subscription termination
  • Smart dunning for failed transactions
  • Discount and plan-change via Braintree API
  • PayPal payment method update support
  • Sandbox environment for safe testing
  • Works with existing Braintree customer data

Use cases

Cancel Flow Widget

Branded retention widget that hooks into Braintree subscription lifecycle

Failed Transaction Recovery

Retry logic tuned for Braintree's transaction retry windows

PayPal Subscription Retention

Retain PayPal-paying subscribers with targeted offers

Discount Application

Apply Braintree discounts programmatically to save at-risk subscribers

Code examples

Real code for your Braintree integration. Copy and customize.

Installbash
npm install @churnrecovery/braintree
Initialize with Braintree credentialsjavascript
import ChurnRecovery from '@churnrecovery/braintree'

const cr = new ChurnRecovery({
  apiKey: process.env.CHURNRECOVERY_API_KEY,
  braintree: {
    environment: 'Production', // or 'Sandbox'
    merchantId: process.env.BT_MERCHANT_ID,
    publicKey: process.env.BT_PUBLIC_KEY,
    privateKey: process.env.BT_PRIVATE_KEY,
  }
})
Handle subscription cancellationjavascript
// pages/api/braintree-webhook.js
export default async function handler(req, res) {
  const notification = await cr.braintree.parseWebhookNotification(
    req.body.bt_signature,
    req.body.bt_payload
  )

  if (notification.kind === 'subscription_canceled') {
    await cr.handleCancellation({ 
      subscriptionId: notification.subscription.id 
    })
  }
  
  res.json({ ok: true })
}

Setup checklist

  1. 1Install @churnrecovery/braintree via npm
  2. 2Add Braintree credentials (merchant ID, public/private key)
  3. 3Configure webhook in Braintree Control Panel
  4. 4Subscribe to subscription_canceled and subscription_went_past_due events
  5. 5Test with Braintree sandbox
🚀

Ready to get started?

Free forever. No credit card. Set up in 45 minutes.

Get early access →

Stop losing customers you could keep

Most SaaS companies recover 20–30% of would-be churners with cancel flows. ChurnRecovery makes this free for Braintree users.

Get early access — it's free