Braintree (a PayPal company) powers billing for many established SaaS businesses. ChurnRecovery's Braintree integration brings modern cancel flow capabilities to the Braintree ecosystem.
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.
Branded retention widget that hooks into Braintree subscription lifecycle
Retry logic tuned for Braintree's transaction retry windows
Retain PayPal-paying subscribers with targeted offers
Apply Braintree discounts programmatically to save at-risk subscribers
Real code for your Braintree integration. Copy and customize.
npm install @churnrecovery/braintreeimport 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,
}
})// 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 })
}Most SaaS companies recover 20–30% of would-be churners with cancel flows. ChurnRecovery makes this affordable for Braintree users — $20/month, all features included.
Start Free Trial →