Skip to main content
Razorpay → TikTokIntegration guide

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

  1. 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.

  2. 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.

  3. 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.

  4. 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. 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. 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. 3

    The identifier is the bridge

    The ttclid, captured at the visit and carried into the Razorpay payment.

  4. 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. 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

  1. 01

    Count payments carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 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.

  5. 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.

Get my free conversion tracking audit

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.

Get my free conversion tracking audit

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.

Free · 30 min

Get Razorpay and TikTok joined properly

Free30 minutesNo obligation