Skip to main content
Razorpay → BranchIntegration guide

Connecting Razorpay to Branch

Razorpay is Indian payments, where UPI dominates and the flow moves through a separate app on the customer's phone. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the Razorpay payment before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Razorpay purchases attributed through Branch links to your app

Branch's install handoff usually survives on Android, but an in-app Razorpay UPI handoff can kill the app before a Branch PURCHASE fires. Store the user's Branch developer identity in the Razorpay order notes and send the commerce event from payment.captured, revenue converted from paise in INR, with the Razorpay order ID as identifier. Skip the SDK copy.

Branch matters to a Razorpay business when campaigns send people from a browser into your Android or iOS app, and they pay inside the app. India is overwhelmingly Android, where the Play install referrer gives Branch a far more reliable handoff than iOS does, so the deferred deep link usually survives the install. What breaks is the purchase, not the install.

Inside the app, Razorpay hands UPI payments to the banking app and waits for the result. If the app is killed in the meantime, a Branch PURCHASE event logged from the success callback never fires, and the campaign that drove the install looks like it produced none of the revenue. Log the purchase from your server instead: have the app pass its Branch identity, the developer identity you set for the user, to your server when it creates the Razorpay order, store it in the order notes, and send the commerce event from payment.captured with revenue converted from paise and the currency set to INR.

Supply the Razorpay order ID as the event's identifier and do not also log the same purchase from the SDK, because Branch forwards events to ad partners and a duplicate spreads. If your customers mostly pay on mobile web without installing anything, Branch has no seam to bridge here.

Razorpay → Branch · what breaks

Why this join usually fails — Razorpay → Branch

  1. 01

    The Branch link click identifier and the deferred deep link payload 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 install that erases the campaign

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  4. 04

    Nothing reconciles afterwards

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Razorpay → Branch · the fix

What working looks like — Razorpay → Branch

  • The Branch link click identifier and the deferred deep link payload on every payment

  • Conversions arriving in Branch

    The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.

  • Reconciled against the source

Razorpay → Branch · architecture

How Razorpay and Branch 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

    Branch needs a click to match

    Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.

  3. 3

    The identifier is the bridge

    The Branch link click identifier and the deferred deep link payload, 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

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

Razorpay → Branch · normal or broken

Working vs. broken, side by side — Razorpay → Branch

Normal, not a fault

  • The Branch link click identifier and the deferred deep link payload present on the payment

  • Sent from the Razorpay payment.captured webhook

  • Deduplicated correctly

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

  • Reconciles with the source

Actually broken

  • The Branch link click identifier and the deferred deep link payload 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

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  • Nobody has reconciled it

Razorpay → Branch · diagnose

Diagnostic order — Razorpay → Branch

  1. 01

    Count payments carrying the Branch link click identifier and the deferred deep link payload

  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 your organic install share and ask whether it is plausible

    An implausibly large organic share is usually broken attribution rather than genuine word of mouth.

  5. 05

    Read the match rate, not the success message

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Razorpay → Branch · prove

How it gets proven — Razorpay → Branch

Source of truth

Razorpay's captured payments by date, net of refunds.

  • The Branch link click identifier and the deferred deep link payload confirmed present on a live payment.
  • Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
  • A UPI payment approved in the banking app without returning to the site, confirmed to report.

Razorpay → Branch · free audit

What we check in the free audit

  • Count payments carrying the Branch link click identifier and the deferred deep link payload
  • Follow one real conversion end to end
  • Compare captured payments against confirmation-page loads on mobile
  • Measure your organic install share and ask whether it is plausible
  • 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 → Branch · when not to buy

When you don't need this — Razorpay → Branch

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the Branch link click identifier and the deferred deep link payload.
  • If your Razorpay volume is card-only, the app-switch problem largely disappears.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

Razorpay → Branch · what we deliver

What gets built — Razorpay → Branch

  • 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 Branch

    The Branch server-to-server events API, posted from your backend with the user identity and event 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Razorpay → Branch questions, answered

The in-app success callback often never runs after a UPI app switch. Send the purchase from your server on payment.captured, using the Branch identity stored in the order notes.

Free · 30 min

Get Razorpay and Branch joined properly

Free30 minutesNo obligation