Connecting Razorpay to X Ads
Razorpay is Indian payments, where UPI dominates and the flow moves through a separate app on the customer's phone. X is a conversation platform where a large share of engagement is discussion rather than intent, which makes the gap between engagement metrics and conversions unusually wide. The join between them succeeds or fails on one thing: whether the twclid click identifier reaches the Razorpay payment before the conversion happens, because X Ads can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Razorpay to X Ads: twclid from in-app browser through UPI
X's in-app browser is rarely waiting after a UPI app switch. Read twclid on landing, store it server-side against the cart, and copy it into the Razorpay order notes at creation. Send the purchase to X's Conversions API from payment.captured in rupees with INR, the Razorpay order ID as conversion ID and hashed prefilled email or phone.
X traffic lands mostly in X's in-app browser, and a UPI payment from there jumps to a banking app. The in-app browser session is the least likely of any to be waiting when the customer comes back. Read twclid on the landing page, store it server-side against the cart, and copy it into the Razorpay order notes when the order is created. That is the only copy guaranteed to reach payment.captured.
Send the purchase to X's Conversions API from that webhook with the rupee value (Razorpay reports paise), INR, the Razorpay order ID as the conversion ID, and hashed email or phone. Razorpay Checkout lets you prefill contact and email, and whatever you prefill is what you can hash later, so collect it before checkout opens. If the X pixel also fires on a confirmation page for card payments, it must send the same conversion ID.
The diagnostic that matters is X-attributed purchases split by payment method. Card purchases should show up from both pixel and server; UPI purchases should show up almost entirely from the server. If UPI is missing from both, the notes are not being written when the order is created.
Razorpay → X Ads · what breaks
Why this join usually fails — Razorpay → X Ads
- 01
The twclid click identifier 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
Engagement mistaken for intent
A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.
- 04
Nothing reconciles afterwards
Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.
Razorpay → X Ads · the fix
What working looks like — Razorpay → X Ads
The twclid click identifier on every payment
Conversions arriving in X Ads
The conversion is matched to a click or an engagement and becomes available for optimisation and reporting.
Reconciled against the source
Razorpay → X Ads · architecture
How Razorpay and X Ads 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
X Ads needs a click to match
An event X recognises, a conversion identifier for deduplication, hashed customer information, and the click identifier where you have it.
- 3
The identifier is the bridge
The twclid click identifier, 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
X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.
Razorpay → X Ads · normal or broken
Working vs. broken, side by side — Razorpay → X Ads
Normal, not a fault
The twclid click identifier present on the payment
Sent from the Razorpay payment.captured webhook
Deduplicated correctly
X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.
Reconciles with the source
Actually broken
The twclid click identifier 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
A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.
Nobody has reconciled it
Razorpay → X Ads · diagnose
Diagnostic order — Razorpay → X Ads
- 01
Count payments carrying the twclid click identifier
- 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
Compare engagement rate against conversion rate by campaign
On X the two frequently move in opposite directions, and that divergence is the finding rather than a measurement fault.
- 05
Read the match rate, not the success message
Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.
Razorpay → X Ads · prove
How it gets proven — Razorpay → X Ads
Source of truth
Razorpay's captured payments by date, net of refunds.
- The twclid click identifier confirmed present on a live payment.
- Conversions reconciled per order against imported figures, with deduplication verified on a live test.
- A UPI payment approved in the banking app without returning to the site, confirmed to report.
Razorpay → X Ads · free audit
What we check in the free audit
- Count payments carrying the twclid click identifier
- Follow one real conversion end to end
- Compare captured payments against confirmation-page loads on mobile
- Compare engagement rate against conversion rate by campaign
- Read the match rate, not the success message
Checked against
Razorpay's captured payments by date, net of refunds.
Free30 minutesNo obligation
Razorpay → X Ads · when not to buy
When you don't need this — Razorpay → X Ads
- Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the twclid click identifier.
- If your Razorpay volume is card-only, the app-switch problem largely disappears.
- If X is a brand and community channel for you rather than a performance one, measure it that way and do not force a conversion pipeline onto it.
Razorpay → X Ads · what we deliver
What gets built — Razorpay → X Ads
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 X Ads
The X Conversions API, posted server-side with the click identifier and hashed customer data.
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 → X Ads questions, answered
Store twclid in the Razorpay order notes and send purchases to X's Conversions API from payment.captured.
The UPI app switch usually ends X's in-app browser session before the pixel can fire. Only server events catch those purchases.
Almost always because the twclid click identifier 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.
X appends twclid to the landing URL and the pixel stores it. It behaves like other click identifiers, with the usual caveat that a large share of X traffic arrives through the in-app browser, where storage is partitioned and short-lived.
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.
Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.
More on Razorpay → X Ads
- Razorpay → Google AdsConnecting Razorpay to Google Ads
- Razorpay → Microsoft AdsConnecting Razorpay to Microsoft Ads
- Razorpay → Apple Search AdsConnecting Razorpay to Apple Search Ads
RELATED GUIDES
Where Razorpay → X Ads fits in the rest of your tracking
- X Ads · SubscriptionsX Ads conversion tracking for subscription businesses
- X Ads · Financial servicesX Ads conversion tracking for financial services firms
- X Ads × SubscriptionsHow to reconcile X Ads against your billing system
- X Ads · Subscription → renewalHow to track subscription to renewal and churn for X Ads
- Sezzle → X AdsConnecting Sezzle to X Ads
- Razorpay → TikTokConnecting Razorpay to TikTok Events API
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- Paddle → X AdsConnecting Paddle to X Ads
Free · 30 min
Get Razorpay and X Ads joined properly
Free30 minutesNo obligation
