Connecting Stripe to TikTok Events API
Stripe knows exactly what was paid, by whom, and when — down to the cent, including the refund three weeks later. 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 Stripe Customer or PaymentIntent 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
Stripe to TikTok: CompletePayment from in-app checkout buyers
Store the ttclid server-side against the visitor and write it into Stripe Checkout Session metadata, since TikTok's webview may lose storage on return. Send CompletePayment from checkout.session.completed with value converted from cents, currency, and hashed email and phone, using the Checkout Session ID as event_id shared with the pixel. Do not send subscription renewals. Test wallet buttons in-app.
A TikTok buyer typically goes from the in-app browser to checkout.stripe.com and back, and the webview may not restore your site's storage on return. Read the ttclid from the landing URL, store it on your server against the visitor, and write it into the Checkout Session metadata when you create the session. That gets it to the webhook regardless of what happens in the webview.
Send CompletePayment from checkout.session.completed with the value converted from Stripe's integer amount (cents, for USD) and the session's currency. Stripe Checkout collects the buyer's email, and phone if you turn that on; hash both and send them, because for in-app traffic they often match more events than the ttclid does.
Wallet buttons can behave differently inside TikTok's in-app browser, so test Stripe Checkout inside the TikTok app on both iOS and Android before blaming tracking for a drop in in-app conversions. For deduplication, the Checkout Session ID works as an event_id that both the success-page pixel and the server know. Subscription renewals should not be sent as CompletePayment; there is no TikTok click behind them.
Stripe → TikTok · what breaks
Why this join usually fails — Stripe → TikTok
- 01
The ttclid never reaches Stripe
Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.
- 02
Checkout is on Stripe's domain, so the browser loses the thread
The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.
- 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.
Stripe → TikTok · the fix
What working looks like — Stripe → TikTok
The ttclid on every payment
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
Stripe → TikTok · architecture
How Stripe and TikTok actually connect
- 1
Stripe holds the truth
Every succeeded PaymentIntent is a real conversion with a real amount and currency. No sampling, no modeling, no consent gate. This is the number the business actually banked, which is why it is the reference rather than anything either ad platform reports.
- 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 Stripe Customer or PaymentIntent.
- 4
The event source decides reliability
Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.
- 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.
Stripe → TikTok · normal or broken
Working vs. broken, side by side — Stripe → TikTok
Normal, not a fault
The ttclid present on the payment
Sent from the Stripe 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
Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.
Sent from the browser
The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.
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
Stripe → TikTok · diagnose
Diagnostic order — Stripe → TikTok
- 01
Count payments carrying the ttclid
- 02
Follow one real conversion end to end
- 03
Open one succeeded PaymentIntent in the Stripe dashboard
Look at its Metadata section. If the identifier is not there, nothing downstream can fix it — the join is broken at the source and every other check is wasted effort.
- 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.
Stripe → TikTok · prove
How it gets proven — Stripe → TikTok
Source of truth
The Stripe dashboard — Payments, filtered to succeeded, for the same window.
- The ttclid confirmed present on a live payment.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- A refunded payment confirmed to reverse, not just the sale confirmed to send.
Stripe → TikTok · free audit
What we check in the free audit
- Count payments carrying the ttclid
- Follow one real conversion end to end
- Open one succeeded PaymentIntent in the Stripe dashboard
- Measure ttclid capture rate on TikTok traffic specifically
- Read the match rate, not the success message
Checked against
The Stripe dashboard — Payments, filtered to succeeded, for the same window.
Free30 minutesNo obligation
Stripe → TikTok · when not to buy
When you don't need this — Stripe → TikTok
- Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the ttclid.
- If you take payment through a hosted Payment Link or Buy Button and have no server creating sessions, this needs a development change on your side before any tracking work is worth commissioning. Worth knowing before you pay for tracking.
- 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.
Stripe → TikTok · what we deliver
What gets built — Stripe → TikTok
Identifier capture into Stripe
Read the click identifier from the landing page, persist it in a first-party cookie, and pass it into the create-session call as metadata. Stripe carries metadata onto the resulting PaymentIntent and Charge, so it survives to the webhook and to any later refund.
Event source: the Stripe webhook
Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.
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
Stripe fires charge.refunded and charge.dispute.created. Both carry the original metadata, so a refund can be sent as a negative or a retraction wherever the destination supports it. Most setups never wire this and quietly overstate revenue by the refund rate.
Written guarantee
95%+ tracking accuracy
Measured against The Stripe dashboard — Payments, filtered to succeeded, for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Stripe → TikTok questions, answered
Not directly, as far as we know. The usual route is your webhook handler or a server GTM container sending events with data from the Checkout Session.
It lived only in the webview's cookies and was lost across the checkout.stripe.com hop. Put it in Checkout Session metadata when the session is created.
Almost always because the ttclid never reached the Stripe Customer or PaymentIntent. Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created. 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 Stripe webhook. Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.
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 Stripe → TikTok
- Stripe Billing → TikTokConnecting Stripe Billing to TikTok Events API
- 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
RELATED GUIDES
Where Stripe → TikTok fits in the rest of your tracking
- TikTok · SubscriptionsTikTok Ads conversion tracking for subscription businesses
- TikTok · EcommerceTikTok Ads conversion tracking for ecommerce brands
- TikTok × SubscriptionsHow to reconcile TikTok Ads against your billing system
- TikTok · Free trial → paidHow to track free trial to paid for TikTok Ads
- Stripe Billing → TikTokConnecting Stripe Billing to TikTok Events API
- Stripe → QuoraConnecting Stripe to Quora Ads
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- PayPal → TikTokConnecting PayPal to TikTok Events API
Free · 30 min
Get Stripe and TikTok joined properly
Free30 minutesNo obligation
