Connecting Razorpay to TikTok Events API
Razorpay is Indian payments, where UPI dominates and the flow moves through a separate app on the customer's phone. 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 Razorpay payment 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
Razorpay and TikTok: only relevant for buyers outside India
TikTok is blocked in India, so this pair matters only for Razorpay payments from customers abroad. Post the ttclid to your server, write it into the Razorpay order notes, and send CompletePayment from payment.captured to the Events API with the payment ID as event_id, hashed email and phone, converted value and the currency actually charged.
Start with the market. TikTok has been blocked in India since 2020, so a Razorpay merchant selling domestically has no TikTok audience to advertise to, and this pair only matters if you use Razorpay to take payments from customers abroad. Check whether international payments are enabled on your Razorpay account and which currencies it can charge before building anything.
If you do run TikTok to overseas buyers, the flow is the familiar one with Razorpay specifics. The landing page posts the ttclid to your server, your server writes it into the Razorpay order's notes, and the payment.captured webhook sends CompletePayment to the Events API with the payment ID as event_id, hashed email and phone, value converted from the smallest currency unit, and the currency actually charged. International cardholders will not use UPI, so the app-switch gap is mostly absent here.
Payments from TikTok's in-app browser may also hit card authentication steps that behave badly in a webview, so watch failed payments on TikTok-sourced orders in the Razorpay dashboard. A high failure rate there is a checkout problem, not a campaign one.
Razorpay → TikTok · what breaks
Why this join usually fails — Razorpay → TikTok
- 01
The ttclid never reaches Razorpay
UPI sends the customer into a banking app to approve, and on mobile that app switch frequently ends the browser session. The payment completes and the browser that started it may never come back to fire anything.
- 02
UPI app switching ends the browser session
The customer leaves the browser for a banking app to approve, and on many devices does not return. Payment succeeds, page never fires — and UPI is the majority method in this market.
- 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.
Razorpay → TikTok · the fix
What working looks like — Razorpay → 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
Razorpay → TikTok · architecture
How Razorpay and TikTok actually connect
- 1
Razorpay holds the truth
Razorpay separates authorised and captured. Auto-capture is common but not universal, and reporting on authorised inflates the figure by whatever fails to capture.
- 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 Razorpay payment.
- 4
The event source decides reliability
Fire on captured. The app-switch behaviour of UPI makes any browser-based trigger unreliable in a way that is much more pronounced here than on card markets.
- 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.
Razorpay → TikTok · normal or broken
Working vs. broken, side by side — Razorpay → TikTok
Normal, not a fault
The ttclid present on the payment
Sent from the Razorpay payment.captured 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
UPI sends the customer into a banking app to approve, and on mobile that app switch frequently ends the browser session. The payment completes and the browser that started it may never come back to fire anything.
Sent from the browser
The customer leaves the browser for a banking app to approve, and on many devices does not return. Payment succeeds, page never fires — and UPI is the majority method in this market.
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
Razorpay → TikTok · diagnose
Diagnostic order — Razorpay → TikTok
- 01
Count payments carrying the ttclid
- 02
Follow one real conversion end to end
- 03
Compare captured payments against confirmation-page loads on mobile
Split by payment method. The UPI gap will be much larger than the card gap.
- 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.
Razorpay → TikTok · prove
How it gets proven — Razorpay → TikTok
Source of truth
Razorpay's captured payments by date, net of refunds.
- The ttclid confirmed present on a live payment.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- A UPI payment approved in the banking app without returning to the site, confirmed to report.
Razorpay → TikTok · free audit
What we check in the free audit
- Count payments carrying the ttclid
- Follow one real conversion end to end
- Compare captured payments against confirmation-page loads on mobile
- Measure ttclid capture rate on TikTok traffic specifically
- Read the match rate, not the success message
Checked against
Razorpay's captured payments by date, net of refunds.
Free30 minutesNo obligation
Razorpay → TikTok · when not to buy
When you don't need this — Razorpay → TikTok
- Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the ttclid.
- If your Razorpay volume is card-only, the app-switch problem largely disappears.
- 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.
Razorpay → TikTok · what we deliver
What gets built — Razorpay → TikTok
Identifier capture into Razorpay
Pass the click identifier into the Razorpay order's notes when your server creates the order. Notes survive to the payment and to the webhook regardless of what the browser did.
Event source: the Razorpay payment.captured webhook
Fire on captured. The app-switch behaviour of UPI makes any browser-based trigger unreliable in a way that is much more pronounced here than on card markets.
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
Refunds are exposed and carry the original notes.
Written guarantee
95%+ tracking accuracy
Measured against Razorpay's captured payments by date, net of refunds.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Razorpay → TikTok questions, answered
No. TikTok is not available in India, so this only applies to customers in other countries paying through Razorpay's international payments.
CompletePayment from the payment.captured webhook, with the ttclid stored in order notes and value converted from the smallest currency unit.
Almost always because the ttclid never reached the Razorpay payment. UPI sends the customer into a banking app to approve, and on mobile that app switch frequently ends the browser session. The payment completes and the browser that started it may never come back to fire anything. 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 Razorpay payment.captured webhook. Fire on captured. The app-switch behaviour of UPI makes any browser-based trigger unreliable in a way that is much more pronounced here than on card markets.
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 Razorpay → 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 Razorpay → TikTok fits in the rest of your tracking
- TikTok · Financial servicesTikTok Ads conversion tracking for financial services firms
- TikTok · SubscriptionsTikTok Ads conversion tracking for subscription businesses
- TikTok × SubscriptionsHow to reconcile TikTok Ads against your billing system
- TikTok · Free trial → paidHow to track free trial to paid for TikTok Ads
- Worldpay → TikTokConnecting Worldpay to TikTok Events API
- Razorpay → LinkedInConnecting Razorpay to LinkedIn Ads
- Financial servicesConversion tracking for financial services, built for the compliance review
- Zuora → TikTokConnecting Zuora to TikTok Events API
Free · 30 min
Get Razorpay and TikTok joined properly
Free30 minutesNo obligation
