Guides · Razorpay

Get a Mac notification for every Razorpay payment

Razorpay posts a webhook the moment a payment is captured or fails, an order is paid or a refund goes through. Point one at EventBar and each one pops up in your menu bar, with this week's count of captured payments a glance away, without keeping the Dashboard open.

Needs: the free EventBar app on your Mac, an EventBar account, and a Razorpay account with access to Accounts & Settings in the Dashboard. About five minutes. Razorpay preset, signature verified.

Steps

  1. Create the webhook URL. In the EventBar dashboard, open the Webhooks tab, pick the group this belongs to (one group per site or app is the usual shape), choose the provider Razorpay, name it, and press Create. Copy the URL; it stays visible and can be rotated any time.
  2. Paste it into Razorpay. In the Razorpay Dashboard, first pick Test mode or Live mode, since each has its own webhooks. Then Accounts & Settings, and under Website and app settings, Webhooks, then + Add New Webhook. Paste the URL, type a Secret of your own (Razorpay doesn't generate one, and it should not be your API key secret), add an Alert Email, tick the Active Events you want, such as payment.captured, payment.failed, order.paid and refund.processed, and press Create Webhook. Paste the same secret into the hook card in EventBar.
  3. Trigger one. Most services offer a test delivery; otherwise do the real thing once. It shows up in the dashboard's Events tab within a second and in the menu bar, as an undefined type named after the event. That first one is your proof the wiring works.
  4. Make it read well. Press Define on the new type and give it a title and a body template. Fields come from the payload, nested ones with dots. The table below is a starting point.

This preset is on Plus and Pro. Free can do the same with a Generic JSON hook and a type field of event, without the signature check, but a retried delivery can count twice: Razorpay sends its event id only in a header, which a Generic JSON hook doesn't read.

What you'll see

TypeTitleBody template
payment.capturedPayment{payload.payment.entity.amount} {payload.payment.entity.currency} · {payload.payment.entity.method} · {payload.payment.entity.email}
payment.failedPayment failed{payload.payment.entity.amount} {payload.payment.entity.currency} · {payload.payment.entity.error_description}
order.paidOrder paid{payload.order.entity.amount_paid} {payload.order.entity.currency} · {payload.order.entity.receipt}
refund.processedRefund{payload.refund.entity.amount} {payload.refund.entity.currency} · {payload.refund.entity.payment_id}

Every type has its own switch in the menu bar, so a noisy one can be quiet on this Mac and still counted. Counts cover the last hour, 24 hours, 7 days, 30 days and all time.

Worth knowing

The full contract, including how each preset reads a payload and what the answers mean, is in the API docs. Something about Razorpay's payload changed? Tell us and we'll fix the guide.