Skip to main content
Razorpay → BrazeIntegration guide

Connecting Razorpay to Braze

Razorpay is Indian payments, where UPI dominates and the flow moves through a separate app on the customer's phone. Braze is mobile-first lifecycle messaging, which means it resolves to a user rather than to a click and its most valuable channels — push and in-app — exist nowhere near a browser. The join between them succeeds or fails on one thing: whether the Braze external user ID reaches the Razorpay payment before the conversion happens, because Braze can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Razorpay payment events in Braze without false 'payment failed' pushes

Do not trigger Braze recovery from Razorpay payment.failed, since a retried UPI attempt may be captured a minute later. Trigger from the order, after a delay with no order.paid or captured payment. Write your Braze external_id into the order notes, and log purchases server-side only, in rupees with INR, not again from the app callback.

The classic Razorpay-to-Braze mistake is a recovery campaign triggered by payment.failed. A Razorpay order can carry several payment attempts: the customer's first UPI request times out or is declined, they retry with another app or a card, and the second attempt is captured a minute later. If Braze fired a push on the first failure, a customer who has just paid gets told their payment failed.

Trigger recovery from the order, not from the payment. Wait for order.paid or a captured payment on the same Razorpay order, and only after a reasonable delay with neither should Braze treat the order as abandoned. Purchases go to Braze against your external_id, which Razorpay knows nothing about, so write it into the order notes when your server creates the order; the email and phone on the payment entity are not a safe key, because a parent or colleague often pays from their own UPI account.

Log the purchase with the price in rupees, not paise, and the currency as INR, and send it from the server only, not again from your app's Razorpay success callback, or Braze records two purchases and fires two post-purchase messages.

Razorpay → Braze · what breaks

Why this join usually fails — Razorpay → Braze

  1. 01

    The Braze external user ID 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

    Duplicate events sending duplicate push notifications

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  4. 04

    Nothing reconciles afterwards

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Razorpay → Braze · the fix

What working looks like — Razorpay → Braze

  • The Braze external user ID on every payment

  • Conversions arriving in Braze

    The event lands on the user profile, triggers whatever campaigns depend on it, and becomes available for segmentation across push, email and in-app.

  • Reconciled against the source

Razorpay → Braze · architecture

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

    Braze needs a click to match

    Braze needs the external user ID and a well-named event with its properties. An event with no external ID lands on an anonymous device profile that may never merge with the real user.

  3. 3

    The identifier is the bridge

    The Braze external user ID, 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

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

Razorpay → Braze · normal or broken

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

Normal, not a fault

  • The Braze external user ID present on the payment

  • Sent from the Razorpay payment.captured webhook

  • Deduplicated correctly

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

  • Reconciles with the source

Actually broken

  • The Braze external user ID 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 duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  • Nobody has reconciled it

Razorpay → Braze · diagnose

Diagnostic order — Razorpay → Braze

  1. 01

    Count payments carrying the Braze external user ID

  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

    Send a test purchase and read the user profile's event stream

    One event or two? Check whether the SDK is already sending the same event before adding a server source, and check that the external ID matches the signed-in user rather than creating a new profile.

  5. 05

    Read the match rate, not the success message

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Razorpay → Braze · prove

How it gets proven — Razorpay → Braze

Source of truth

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

  • The Braze external user ID confirmed present on a live payment.
  • The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
  • A UPI payment approved in the banking app without returning to the site, confirmed to report.

Razorpay → Braze · free audit

What we check in the free audit

  • Count payments carrying the Braze external user ID
  • Follow one real conversion end to end
  • Compare captured payments against confirmation-page loads on mobile
  • Send a test purchase and read the user profile's event stream
  • 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 → Braze · when not to buy

When you don't need this — Razorpay → Braze

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the Braze external user ID.
  • If your Razorpay volume is card-only, the app-switch problem largely disappears.
  • If you have no mobile app and no push channel, Braze is a large piece of infrastructure for a job an email platform already does.

Razorpay → Braze · what we deliver

What gets built — Razorpay → Braze

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

    The Braze user track endpoint, posted server-side from your order or billing system with the external user ID and event properties.

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

Not as a direct trigger. Orders often have a failed UPI attempt followed by a successful one, so trigger recovery only when the order has no captured payment after a delay.

Free · 30 min

Get Razorpay and Braze joined properly

Free30 minutesNo obligation