Platform
Chatbot Builder Bulk Messaging Team Inbox Mini CRM API & Webhooks AI Integration WhatsApp Flows
Industries
E-commerce & D2C Real Estate Education Healthcare Finance & BFSI Logistics Hospitality Retail
Integrations 📚 Learn 🗂 Codex Compare Pricing About Contact Start Free Trial →

Razorpay + WhatsApp API Integration — Complete Guide 2025

Razorpay processes over 450 crore transactions annually for Indian businesses. WA.Expert makes sure customers know about every one of those transactions — instantly, on WhatsApp, with 94% open rate. The most popular payment + WhatsApp integration for Indian businesses.

Connect Razorpay + WhatsApp → Talk to an Expert
500K+
Indian businesses using Razorpay
94%
Payment WhatsApp notification open rate
Instant
WhatsApp fires within seconds of Razorpay webhook
All products
Payments, subscriptions, invoices, payout — all covered

Top use cases for Razorpay + WhatsApp API

Razorpay is India's most popular payment gateway — processing payments for 500,000+ Indian businesses. WA.Expert connects Razorpay's webhook events to WhatsApp: instant payment receipts, failed payment recovery, subscription billing notifications, and refund confirmations.

💳
Payment success → WhatsApp receipt
Every successful Razorpay payment fires instant WhatsApp receipt with amount, payment ID, and date.
Payment failed → WhatsApp recovery
Failed Razorpay payment fires WhatsApp with fresh payment link — recovers 35% of failed payments.
🔄
Subscription renewal → WhatsApp
Monthly/annual Razorpay subscription charge fires WhatsApp receipt to subscriber.
↩️
Refund processed → WhatsApp
Razorpay refund event fires WhatsApp confirming amount and bank credit timeline.

How Razorpay events trigger WhatsApp messages

Razorpay triggerWhatsApp action (WA.Expert)Business impact
payment.capturedInstant WhatsApp receipt — amount + payment ID94% receipt read rate
payment.failedWhatsApp with fresh payment retry link35% failed payment recovery
refund.createdWhatsApp refund confirmation + bank timelineReduces refund queries by 60%
subscription.chargedWhatsApp subscription renewal receiptSubscriber transparency
subscription.halted (failed)WhatsApp subscription payment recoveryReduces involuntary churn

How to connect Razorpay to WhatsApp API

1

Set up Razorpay webhook

In Razorpay Dashboard → Settings → Webhooks → Add New Webhook. Enter your WA.Expert webhook URL. Select events: payment.captured, payment.failed, refund.created, subscription.charged, subscription.halted.

2

Configure webhook secret for security

Razorpay sends an X-Razorpay-Signature header with each webhook. WA.Expert verifies this signature using your webhook secret to prevent fraudulent webhook calls. Set this up in WA.Expert → Integrations → Razorpay.

3

Map customer phone from Razorpay payload

Razorpay payment payloads include contact field with customer phone. Map payload.payment.entity.contact to WA.Expert's "to" field. WA.Expert normalises Indian mobile numbers (with or without +91) automatically.

4

Create WhatsApp templates for each event type

Create separate approved templates for: payment success, payment failed, refund, and subscription. WA.Expert's template library has pre-approved Razorpay templates ready to use.

5

Test with Razorpay test mode

In Razorpay test mode, make a test payment. The webhook fires to WA.Expert and the WhatsApp is sent to the test phone number. Verify message content and variable mapping before switching to live mode.

Sample Razorpay → WhatsApp configuration

// Razorpay webhook → WA.Expert // Event: payment.captured { "entity": "event", "event": "payment.captured", "payload": { "payment": { "entity": { "id": "pay_29QQoUBi66xm2f", "amount": 149900, "contact": "+919876543210", "name": "Priya Sharma", "description": "Course Enrollment" } } } }

WA.Expert handles WhatsApp API authentication, template approval, and delivery. You pass trigger data from Razorpay — no WhatsApp API expertise needed.

Razorpay + WhatsApp — common questions

How do I verify Razorpay webhook authenticity in WA.Expert?
WA.Expert verifies the X-Razorpay-Signature header automatically using HMAC-SHA256 with your webhook secret. This prevents fraudulent webhook calls from triggering false WhatsApp receipts. Set your Razorpay webhook secret in WA.Expert → Integrations → Razorpay → Webhook Secret.
What is the Razorpay payment amount format in the webhook?
Razorpay sends payment amounts in paise (1/100 of a rupee). ₹1,499 is sent as 149900 in the webhook payload. WA.Expert automatically converts paise to rupees for display in WhatsApp templates. No manual conversion needed.
Can I send the customer's invoice/receipt PDF via WhatsApp from Razorpay?
Yes — if you generate invoices in Razorpay (via Razorpay Invoices feature), WA.Expert can fetch the invoice PDF via the Razorpay API and attach it to the WhatsApp message as a document. The customer receives the official Razorpay invoice as a PDF on WhatsApp.
Does this work with Razorpay Payment Links?
Yes — Razorpay Payment Link payment events fire the same payment.captured webhook. WA.Expert sends a WhatsApp receipt when payment is made via a Razorpay Payment Link, regardless of whether the link was sent via email, SMS, or WhatsApp itself.
How does Razorpay subscription WhatsApp work for monthly billing?
For each successful subscription charge (subscription.charged event), WA.Expert sends a WhatsApp receipt to the subscriber. For failed subscription charges (subscription.halted), WA.Expert sends a recovery WhatsApp with instructions to update payment method. This automatically handles the full subscription billing communication lifecycle.
Can I use Razorpay + WA.Expert for marketplace payouts?
Yes — Razorpay Route (marketplace payouts) fires webhook events when transfers to vendors are processed. WA.Expert sends WhatsApp payout notifications to vendors via the transfer.settled webhook event.

More WhatsApp integration guides

Ready to connect Razorpay to WhatsApp?

India's most popular payment gateway + India's most popular messaging app. Payment receipts, failed payment recovery, subscription billing — all automated.

Start Free Trial → Talk to an Expert