Skip to main content
Razorpay → SalesforceIntegration guide

Connecting Razorpay to Salesforce

Razorpay is Indian payments, where UPI dominates and the flow moves through a separate app on the customer's phone. Sending conversions into Salesforce rather than out of it is how marketing data reaches the place sales actually works. The join between them succeeds or fails on one thing: whether the Lead or Contact identity reaches the Razorpay payment before the conversion happens, because Salesforce can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Razorpay to Salesforce: captured payments onto the Opportunity

Put the Salesforce Opportunity ID in the notes of each Razorpay payment link or invoice, then on payment.captured update that Opportunity with amount received, payment ID, method and date, recording partial payments as child records. Map the Lead's gclid or fbclid through conversion onto the Opportunity so paid deals can be uploaded as offline conversions.

This pair usually belongs to an Indian B2B or services business where sales closes the deal and Razorpay collects the money through a payment link or invoice rather than a website checkout. The useful write is the captured payment onto the matching Opportunity, so the CRM shows what was actually paid rather than what the rep marked Closed Won.

The join key is yours to set. When a rep or your system creates a Razorpay payment link or invoice, put the Salesforce Opportunity ID in its notes; the payment.captured webhook returns it and your integration updates that record with the amount received, payment ID, method and date. Check whether a ready-made Razorpay connector exists for your org before writing one. Payment links can accept partial payments, so record payments as child records rather than overwriting a single amount field.

That paid Opportunity is also what should feed offline conversions later. If the Lead carried a gclid or fbclid from the original enquiry, it has to survive Lead conversion onto the Opportunity, so the captured payment can be uploaded against the click that started the deal, often weeks earlier. Check each platform's lookback window against your typical time from enquiry to payment.

Razorpay → Salesforce · what breaks

Why this join usually fails — Razorpay → Salesforce

  1. 01

    The Lead or Contact identity 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

    Writes that succeed and change nothing

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  4. 04

    Nothing reconciles afterwards

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Razorpay → Salesforce · the fix

What working looks like — Razorpay → Salesforce

  • The Lead or Contact identity on every payment

  • Conversions arriving in Salesforce

    The marketing context appears on the record and flows into the opportunity, where sales and reporting can both use it.

  • Reconciled against the source

Razorpay → Salesforce · architecture

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

    Salesforce needs a click to match

    Salesforce needs a resolvable record and a custom field to write to. Field-level security and validation rules can silently reject writes, which is a Salesforce-specific failure that returns success at the API level and changes nothing.

  3. 3

    The identifier is the bridge

    The Lead or Contact identity, 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

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

Razorpay → Salesforce · normal or broken

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

Normal, not a fault

  • The Lead or Contact identity present on the payment

  • Sent from the Razorpay payment.captured webhook

  • Deduplicated correctly

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

  • Reconciles with the source

Actually broken

  • The Lead or Contact identity 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

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  • Nobody has reconciled it

Razorpay → Salesforce · diagnose

Diagnostic order — Razorpay → Salesforce

  1. 01

    Count payments carrying the Lead or Contact identity

  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

    Write a test value and open the record in the UI

    The API saying it worked and the field actually holding the value are different things in Salesforce more than anywhere else.

  5. 05

    Read the match rate, not the success message

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Razorpay → Salesforce · prove

How it gets proven — Razorpay → Salesforce

Source of truth

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

  • The Lead or Contact identity confirmed present on a live payment.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • A UPI payment approved in the banking app without returning to the site, confirmed to report.

Razorpay → Salesforce · free audit

What we check in the free audit

  • Count payments carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • Compare captured payments against confirmation-page loads on mobile
  • Write a test value and open the record in the UI
  • 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 → Salesforce · when not to buy

When you don't need this — Razorpay → Salesforce

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the Lead or Contact identity.
  • If your Razorpay volume is card-only, the app-switch problem largely disappears.
  • If your Salesforce org is administered by a team you cannot get time with, scope their availability before starting — this build is usually blocked on admin access rather than on the work.

Razorpay → Salesforce · what we deliver

What gets built — Razorpay → Salesforce

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

    API writes to the Lead or Contact record, or a platform event, carrying the marketing context as custom field values.

  • 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 → Salesforce questions, answered

Put the Opportunity ID in the payment link or invoice notes, then update that record from the payment.captured webhook.

Free · 30 min

Get Razorpay and Salesforce joined properly

Free30 minutesNo obligation