Skip to main content
Braintree → Customer.ioIntegration guide

Connecting Braintree to Customer.io

Braintree is a payment gateway rather than a storefront, so it sits underneath whatever is taking the order and holds the transaction itself. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the Braintree transaction before the conversion happens, because Customer.io can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Braintree to Customer.io: keep sandbox webhooks out of prod

Send Braintree subscription billing events, such as trial ending, charge failed, past due and canceled, to Customer.io under your own user ID or account email, not the PayPal payer email. Route sandbox webhooks to a test workspace or drop them at the handler, ignore repeated notifications, and send purchases at settlement with amount, currency and plan.

Customer.io is a natural home for Braintree subscription billing events: a trial ending, a charge failing, a subscription going past due or being canceled. Each is a moment for an email, and Braintree's webhooks report them more reliably than most application code does. The person identifier should be your own user ID or account email, looked up from the Braintree customer, not the PayPal payer email on the payment.

The risk specific to this pair is crossed environments. Braintree's sandbox sends real webhooks to whatever URL you configure, and teams often point sandbox and production at the same handler. If that handler forwards to your production Customer.io workspace, a developer testing a failed renewal in sandbox sends a real payment-failed email to whatever address the test customer carried. Route sandbox webhooks to a test workspace, or drop them at the handler by checking which environment sent them.

Webhook deliveries can repeat when your endpoint is slow to acknowledge, and Customer.io will act on both copies. Record each notification on first receipt and ignore repeats before forwarding. For purchases, send at settlement and include the amount, currency and plan your templates reference, so a renewal receipt never goes out with an empty total.

Braintree → Customer.io · what breaks

Why this join usually fails — Braintree → Customer.io

  1. 01

    The person identifier you assign never reaches Braintree

    Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.

  2. 02

    A gateway that knows nothing about marketing

    Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.

  3. 03

    A test event sending a real email

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  4. 04

    Nothing reconciles afterwards

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Braintree → Customer.io · the fix

What working looks like — Braintree → Customer.io

  • The person identifier you assign on every transaction

  • Conversions arriving in Customer.io

    The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.

  • Reconciled against the source

Braintree → Customer.io · architecture

How Braintree and Customer.io actually connect

  1. 1

    Braintree holds the truth

    Settled and authorised are different states. Authorisation reserves the funds; settlement is money moving, and reporting on the wrong one produces a persistent gap against your bank.

  2. 2

    Customer.io needs a click to match

    Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.

  3. 3

    The identifier is the bridge

    The person identifier you assign, captured at the visit and carried into the Braintree transaction.

  4. 4

    The event source decides reliability

    Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.

  5. 5

    Deduplication at the destination

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

Braintree → Customer.io · normal or broken

Working vs. broken, side by side — Braintree → Customer.io

Normal, not a fault

  • The person identifier you assign present on the transaction

  • Sent from the Braintree transaction settlement webhook

  • Deduplicated correctly

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

  • Reconciles with the source

Actually broken

  • The person identifier you assign missing on most records

    Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.

  • Sent from the browser

    Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.

  • Counted twice, or not at all

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  • Nobody has reconciled it

Braintree → Customer.io · diagnose

Diagnostic order — Braintree → Customer.io

  1. 01

    Count transactions carrying the person identifier you assign

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a settled transaction and check its custom fields

    If the identifier is not there, your application never attached it and nothing downstream can recover it.

  4. 04

    Confirm which workspace you are writing to before sending anything

    Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.

  5. 05

    Read the match rate, not the success message

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Braintree → Customer.io · prove

How it gets proven — Braintree → Customer.io

Source of truth

Braintree's transaction records, filtered to settled, for the same window.

  • The person identifier you assign confirmed present on a live transaction.
  • Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
  • A PayPal-funded transaction confirmed to report even though the buyer was redirected away.

Braintree → Customer.io · free audit

What we check in the free audit

  • Count transactions carrying the person identifier you assign
  • Follow one real conversion end to end
  • Open a settled transaction and check its custom fields
  • Confirm which workspace you are writing to before sending anything
  • Read the match rate, not the success message

Checked against

Braintree's transaction records, filtered to settled, for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Braintree → Customer.io · when not to buy

When you don't need this — Braintree → Customer.io

  • Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the person identifier you assign.
  • If your platform already reports orders accurately and Braintree is purely the funding rail, work at the order layer instead — it is closer to the customer.
  • If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.

Braintree → Customer.io · what we deliver

What gets built — Braintree → Customer.io

  • Identifier capture into Braintree

    Pass the click identifier into the transaction's custom fields when your server creates the charge. Braintree preserves them and they survive to the webhook and to any later refund.

  • Event source: the Braintree transaction settlement webhook

    Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.

  • Dispatch to Customer.io

    The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.

  • Reversals where they exist

    Braintree exposes refunds and disputes, both carrying the original custom fields, so reversals are straightforward.

Written guarantee

95%+ tracking accuracy

Measured against Braintree's transaction records, filtered to settled, for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Braintree → Customer.io questions, answered

Listen for Braintree's subscription webhooks on your server, look up the person by your own user ID, and send an event to the Customer.io Track API with the amount and plan the email uses.

Free · 30 min

Get Braintree and Customer.io joined properly

Free30 minutesNo obligation