Connecting Braintree to TikTok Events API
Braintree is a payment gateway rather than a storefront, so it sits underneath whatever is taking the order and holds the transaction itself. TikTok's audience skews to exactly the browsers and app contexts where browser-side tracking performs worst. The join between them succeeds or fails on one thing: whether the ttclid reaches the Braintree transaction before the conversion happens, because TikTok can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Braintree to TikTok: CompletePayment with a ttclid that survived
Save the ttclid against the visitor on the first page view, since TikTok's in-app browser and PayPal handoffs make late cookie reads fail, then copy it into a Braintree custom field at sale. Send CompletePayment from settlement with amount, merchant-account currency, hashed email and phone, and the pixel's event_id. Exclude refunded transactions from value reporting.
TikTok buyers usually arrive inside TikTok's in-app browser, so the ttclid has to be on your server before checkout starts. Save it against the visitor on the first page view, then copy it into a Braintree custom field when the sale is created. Waiting until checkout to read the _ttp cookie fails more often in this pair than with any other ad platform.
Wallet payments are where this pair breaks. Inside the TikTok webview, PayPal may open a separate window or hand off to the PayPal app, and the buyer can finish somewhere your pixel never loads; test this on a real phone inside the TikTok app. The settlement event from Braintree is then the only CompletePayment TikTok gets, so it has to carry hashed email and phone for the cases where the ttclid is missing.
Send CompletePayment with the settled amount, the merchant account's currency, and the same event_id the pixel used on the confirmation page when that page did load. We are not aware of a way to retract a CompletePayment through the Events API, so confirm in your account; at minimum, exclude refunded Braintree transactions from any TikTok value reporting you build on top.
Braintree → TikTok · what breaks
Why this join usually fails — Braintree → TikTok
- 01
The ttclid 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.
- 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.
- 03
The ttclid is lost in the in-app browser
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
- 04
Nothing reconciles afterwards
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Braintree → TikTok · the fix
What working looks like — Braintree → TikTok
The ttclid on every transaction
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
Braintree → TikTok · architecture
How Braintree and TikTok actually connect
- 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
TikTok Events API needs a click to match
TikTok matches server events using ttclid where available, falling back to hashed contact information. Both should be sent — the fallback is what carries the events where the click ID did not survive.
- 3
The identifier is the bridge
The ttclid, captured at the visit and carried into the Braintree transaction.
- 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
Deduplication at the destination
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Braintree → TikTok · normal or broken
Working vs. broken, side by side — Braintree → TikTok
Normal, not a fault
The ttclid present on the transaction
Sent from the Braintree transaction settlement webhook
Deduplicated correctly
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Reconciles with the source
Actually broken
The ttclid 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
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
Nobody has reconciled it
Braintree → TikTok · diagnose
Diagnostic order — Braintree → TikTok
- 01
Count transactions carrying the ttclid
- 02
Follow one real conversion end to end
- 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.
- 04
Measure ttclid capture rate on TikTok traffic specifically
Not on all traffic. TikTok's in-app browser is the failure case, so a healthy overall capture rate can hide a poor one on exactly the traffic that matters.
- 05
Read the match rate, not the success message
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Braintree → TikTok · prove
How it gets proven — Braintree → TikTok
Source of truth
Braintree's transaction records, filtered to settled, for the same window.
- The ttclid confirmed present on a live transaction.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- A PayPal-funded transaction confirmed to report even though the buyer was redirected away.
Braintree → TikTok · free audit
What we check in the free audit
- Count transactions carrying the ttclid
- Follow one real conversion end to end
- Open a settled transaction and check its custom fields
- Measure ttclid capture rate on TikTok traffic specifically
- Read the match rate, not the success message
Checked against
Braintree's transaction records, filtered to settled, for the same window.
Free30 minutesNo obligation
Braintree → TikTok · when not to buy
When you don't need this — Braintree → TikTok
- Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the ttclid.
- 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 TikTok is a small share of spend, the effort is hard to justify. It pays when TikTok is a channel you are actively scaling.
Braintree → TikTok · what we deliver
What gets built — Braintree → TikTok
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 TikTok
Server events to the TikTok Events API with the ttclid, hashed contact information and a matching event_id.
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.
From $400 · See packages
FAQ
Braintree → TikTok questions, answered
Not that we are aware of; check both partner directories. In practice the event comes from your own server using the transaction data Braintree returns.
Most often the ttclid lived only in the webview's storage and was gone by payment time, or PayPal finished outside the in-app browser. Persist the ttclid server-side on landing.
Almost always because the ttclid never reached the Braintree transaction. 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. Measure coverage before debugging the dispatch.
The ttclid — TikTok's click identifier, appended to your landing page URL and also stored in the _ttp cookie. TikTok additionally matches on hashed email and phone. In-app browser behavior makes ttclid capture more fragile than the equivalents on other platforms, so persisting it server-side as soon as it is seen matters more here than elsewhere.
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.
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
More on Braintree → TikTok
- TikTok · Lead → booked callHow to track lead to booked call for TikTok Ads
- TikTok · Booked call → closed wonHow to track booked call to closed won for TikTok Ads
- TikTok · Free trial → paidHow to track free trial to paid for TikTok Ads
RELATED GUIDES
Where Braintree → TikTok fits in the rest of your tracking
- TikTok · Furniture ecommerceTikTok Ads conversion tracking for furniture ecommerce brands
- TikTok · FashionTikTok Ads conversion tracking for fashion brands
- TikTok × Ecommerce OrdersHow to reconcile TikTok Ads against your store's order table
- TikTok · Add to cart → purchaseHow to track add to cart to purchase for TikTok Ads
- SureCart → TikTokConnecting SureCart to TikTok Events API
- Braintree → RedditConnecting Braintree to Reddit
- FashionConversion tracking for fashion brands, reported net of returns
- EDD → TikTokConnecting Easy Digital Downloads to TikTok Events API
Free · 30 min
Get Braintree and TikTok joined properly
Free30 minutesNo obligation
