Skip to main content
Razorpay → Marketing CloudIntegration guide

Connecting Razorpay to Salesforce Marketing Cloud

Razorpay is Indian payments, where UPI dominates and the flow moves through a separate app on the customer's phone. Marketing Cloud is a different product from Salesforce CRM with a different identity model, which catches out almost everyone who assumes a contact in one is a contact in the other. The join between them succeeds or fails on one thing: whether the Subscriber Key reaches the Razorpay payment before the conversion happens, because Marketing Cloud can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Razorpay payments into Marketing Cloud journeys without duplicates

Insert Razorpay payment.captured events into the Marketing Cloud journey's data extension, keyed on the Subscriber Key stored in the order notes. Make the Razorpay payment ID the primary key so webhook retries update rather than duplicate, and block re-entry for the same payment. For financial products, send only amount, product name and date.

Large Indian brands on Salesforce Marketing Cloud, such as insurers, lenders, edtech and retail, often take payments through Razorpay, and the obvious use is a journey that starts on a payment: a receipt, a policy welcome series, a renewal reminder. The journey listens to a data extension, so the integration is an insert into that data extension from the payment.captured webhook, keyed on the Subscriber Key you stored in the Razorpay order notes when the order was created.

Razorpay retries any webhook that does not get a success response, and a slow handler that times out after writing to Marketing Cloud will receive the same event again. Make the Razorpay payment ID the data extension's primary key, so the retry updates the existing row instead of inserting a second one, and configure the journey's entry settings so a contact already in the journey is not entered again for the same payment. Without both, a customer can receive two receipts by email and two by SMS for one premium.

For insurance, lending and other financial products, send only what the journey needs: the amount, the product name and the date. Policy details, credit information and anything a customer disclosed in an application have no place in a marketing data extension.

Razorpay → Marketing Cloud · what breaks

Why this join usually fails — Razorpay → Marketing Cloud

  1. 01

    The Subscriber Key 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

    Two identity models treated as one

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  4. 04

    Nothing reconciles afterwards

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

Razorpay → Marketing Cloud · the fix

What working looks like — Razorpay → Marketing Cloud

  • The Subscriber Key on every payment

  • Conversions arriving in Marketing Cloud

    The record lands in the data extension, the journey's entry criteria evaluate on its schedule, and sends follow.

  • Reconciled against the source

Razorpay → Marketing Cloud · architecture

How Razorpay and Marketing Cloud 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 Marketing Cloud needs a click to match

    The Subscriber Key, the data extension the journey listens to, and the fields its decision splits reference. An event landing in the wrong data extension will be stored correctly and trigger nothing.

  3. 3

    The identifier is the bridge

    The Subscriber Key, 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

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

Razorpay → Marketing Cloud · normal or broken

Working vs. broken, side by side — Razorpay → Marketing Cloud

Normal, not a fault

  • The Subscriber Key present on the payment

  • Sent from the Razorpay payment.captured webhook

  • Deduplicated correctly

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

  • Reconciles with the source

Actually broken

  • The Subscriber Key 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

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  • Nobody has reconciled it

Razorpay → Marketing Cloud · diagnose

Diagnostic order — Razorpay → Marketing Cloud

  1. 01

    Count payments carrying the Subscriber Key

  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

    Confirm what Subscriber Key is actually set to in this org

    Before sending anything. It is a configuration decision made once, often years ago, and every integration built afterwards inherits it.

  5. 05

    Read the match rate, not the success message

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

Razorpay → Marketing Cloud · prove

How it gets proven — Razorpay → Marketing Cloud

Source of truth

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

  • The Subscriber Key confirmed present on a live payment.
  • Records confirmed on single subscriber records in the correct data extension, with the triggered journey verified in a non-production business unit first.
  • A UPI payment approved in the banking app without returning to the site, confirmed to report.

Razorpay → Marketing Cloud · free audit

What we check in the free audit

  • Count payments carrying the Subscriber Key
  • Follow one real conversion end to end
  • Compare captured payments against confirmation-page loads on mobile
  • Confirm what Subscriber Key is actually set to in this org
  • 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 → Marketing Cloud · when not to buy

When you don't need this — Razorpay → Marketing Cloud

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the Subscriber Key.
  • If your Razorpay volume is card-only, the app-switch problem largely disappears.
  • If you are on Salesforce CRM but sending email through a simpler platform, adding Marketing Cloud brings an identity model to reconcile that you currently do not have to think about.

Razorpay → Marketing Cloud · what we deliver

What gets built — Razorpay → Marketing Cloud

  • 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 Marketing Cloud

    A server-side insert into the data extension the journey is configured against, keyed on Subscriber Key.

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

Insert the payment.captured webhook into the data extension the journey listens to, keyed on the Subscriber Key stored in the Razorpay order notes. Use the payment ID as the primary key.

Free · 30 min

Get Razorpay and Marketing Cloud joined properly

Free30 minutesNo obligation