Razorpay

Stable

Razorpay on WhatsApp — payment links, settlements, subscriptions, and refunds from chat

Payments & Billing

What is Razorpay?

Razorpay is India's leading payment gateway, processing UPI, cards, net banking, wallets, and EMIs for hundreds of thousands of businesses. The LunoGen Razorpay integration uses the Razorpay REST API and webhooks so your AI agent can watch every payment, generate payment links on demand, manage subscriptions, and reconcile settlements directly from WhatsApp.

Why connect Razorpay?

Indian merchants live with Razorpay open in one tab and WhatsApp in another all day. Every founder knows the ritual: customer asks for a link, you log into the dashboard, create a link, copy it, paste it into WhatsApp. With LunoGen, that whole flow collapses into a single sentence — and the agent also handles settlement tracking, UPI reconciliation, and daily collection reports without you touching the dashboard.

What you can do

  • Real-time payment and refund notifications via Razorpay webhooks
  • Generate Razorpay Payment Links directly from WhatsApp
  • UPI, card, net banking, and wallet support
  • Daily collections summary with method breakdown
  • Settlement reconciliation and MDR tracking
  • Subscription lifecycle events (authenticated, charged, halted)
  • Instant refund processing through REST API
  • Customer lookup by email, phone, or order ID
  • Smart routing and linked account support for marketplaces
  • GST invoice generation for each payment
  • Test mode for safe experimentation

Setup

Requirements

  • A Razorpay account (Live or Test mode)
  • Ability to generate API keys from the Razorpay dashboard
  • A LunoGen account with the Pro plan or higher
  1. 1

    Generate Razorpay API keys

    In the Razorpay dashboard go to Settings → API Keys → Generate Live Key. Razorpay shows the Key ID and Key Secret exactly once — copy them now.

  2. 2

    Add the credential in LunoGen

    Open Credentials → New → Razorpay. Paste the Key ID and Secret. LunoGen verifies by calling /v1/payments?count=1.

  3. 3

    Configure a webhook

    In Razorpay dashboard → Settings → Webhooks → Add Webhook, enter the LunoGen webhook URL and subscribe to payment.captured, payment.failed, refund.processed, subscription.charged, and subscription.halted. Set a webhook secret and paste the same secret into LunoGen.

  4. 4

    Optional: set default invoice settings

    If you want auto-generated GST invoices, upload your GSTIN, business address, and place of supply in LunoGen's Razorpay settings. The agent reuses them for every payment link.

Razorpay use cases

6 total

Generate Razorpay Payment Links from WhatsApp

Tell the agent who you're invoicing and for how much. It creates a Razorpay Payment Link with customer details pre-filled, returns the short URL, and optionally messages the link directly to the customer.

WhatsApp DMpayment-linksinvoicingupi

Create a ₹12,500 payment link for Priya Nair for the 2-day workshop. Her number is +91 98111 20304 and email priya.nair@example.com. Send it to her on WhatsApp.

http_request → Razorpay Payment Links API

Creating a Razorpay Payment Link via /v1/payment_links...

See full conversation

Related integrations

Ready to connect Razorpay?

Spin up an AI agent in under 2 minutes, plug in your Razorpay credentials, and start running your workflows from WhatsApp.