Skip to main content
Braintree → BrazeIntegration guide

Connecting Braintree to Braze

Braintree is a payment gateway rather than a storefront, so it sits underneath whatever is taking the order and holds the transaction itself. Braze is mobile-first lifecycle messaging, which means it resolves to a user rather than to a click and its most valuable channels — push and in-app — exist nowhere near a browser. The join between them succeeds or fails on one thing: whether the Braze external user ID reaches the Braintree transaction before the conversion happens, because Braze can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Braintree billing events in Braze: dunning by push, sent once

Send Braze the Braintree billing events your app cannot see: failed renewals, past-due subscriptions and web cancellations from recurring billing webhooks. Post them to the user track endpoint under your Braze external_id, stored in a custom field or lookup, never the Braintree customer ID. Pick one source per event so a purchase doesn't trigger two pushes.

Braze's best use of Braintree data is not the purchase, which your app usually knows about already, but the billing events your app cannot see: a renewal that failed, a subscription that went past due, a cancellation made on the web. Braintree's recurring billing webhooks report those, and Braze can turn them into a push or in-app message at the moment the customer can fix the card.

The join is the Braze external_id, and the Braintree customer ID is not it unless you designed it that way. Store your user ID in a Braintree custom field or keep a lookup from Braintree customer ID to user ID, then post to the Braze user track endpoint with the external_id and properties such as amount and plan. An event sent with the Braintree customer ID as external_id creates a separate profile that nobody's campaign reaches.

Check what the app SDK already logs. If the success screen logs a purchase through the Braze SDK and your server also forwards the Braintree transaction, the customer gets two post-purchase pushes for one payment. Pick one source per event: the app SDK for in-session purchases, Braintree webhooks for renewals and failures that happen while the app is closed.

Braintree → Braze · what breaks

Why this join usually fails — Braintree → Braze

  1. 01

    The Braze external user ID 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

    Duplicate events sending duplicate push notifications

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  4. 04

    Nothing reconciles afterwards

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Braintree → Braze · the fix

What working looks like — Braintree → Braze

  • The Braze external user ID on every transaction

  • Conversions arriving in Braze

    The event lands on the user profile, triggers whatever campaigns depend on it, and becomes available for segmentation across push, email and in-app.

  • Reconciled against the source

Braintree → Braze · architecture

How Braintree and Braze 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

    Braze needs a click to match

    Braze needs the external user ID and a well-named event with its properties. An event with no external ID lands on an anonymous device profile that may never merge with the real user.

  3. 3

    The identifier is the bridge

    The Braze external user ID, 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

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

Braintree → Braze · normal or broken

Working vs. broken, side by side — Braintree → Braze

Normal, not a fault

  • The Braze external user ID present on the transaction

  • Sent from the Braintree transaction settlement webhook

  • Deduplicated correctly

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

  • Reconciles with the source

Actually broken

  • The Braze external user ID 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

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  • Nobody has reconciled it

Braintree → Braze · diagnose

Diagnostic order — Braintree → Braze

  1. 01

    Count transactions carrying the Braze external user ID

  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

    Send a test purchase and read the user profile's event stream

    One event or two? Check whether the SDK is already sending the same event before adding a server source, and check that the external ID matches the signed-in user rather than creating a new profile.

  5. 05

    Read the match rate, not the success message

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Braintree → Braze · prove

How it gets proven — Braintree → Braze

Source of truth

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

  • The Braze external user ID confirmed present on a live transaction.
  • The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
  • A PayPal-funded transaction confirmed to report even though the buyer was redirected away.

Braintree → Braze · free audit

What we check in the free audit

  • Count transactions carrying the Braze external user ID
  • Follow one real conversion end to end
  • Open a settled transaction and check its custom fields
  • Send a test purchase and read the user profile's event stream
  • 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 → Braze · when not to buy

When you don't need this — Braintree → Braze

  • Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the Braze external user ID.
  • 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 you have no mobile app and no push channel, Braze is a large piece of infrastructure for a job an email platform already does.

Braintree → Braze · what we deliver

What gets built — Braintree → Braze

  • 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 Braze

    The Braze user track endpoint, posted server-side from your order or billing system with the external user ID and event properties.

  • 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 → Braze questions, answered

Yes, if your server listens for Braintree's subscription webhooks, such as a failed charge or a subscription going past due, and sends a Braze event keyed on the user's external_id.

Free · 30 min

Get Braintree and Braze joined properly

Free30 minutesNo obligation