Razorpay Payments
Accept payments securely via WhatsApp using Razorpay integration. Generate payment links, manage subscriptions, and track payment lifecycle.
Overview
WACM integrates with Razorpay to enable seamless payment collection within WhatsApp conversations. Customers receive payment links, complete transactions, and get instant confirmation—all without leaving the chat.
Payment Links
Generate and send payment links via WhatsApp
Subscriptions
Manage recurring payments and billing
Flow Automation
30+ payment variables for AI Flow Builder
Setup Steps
Create Razorpay Account
Sign up at razorpay.com and complete KYC verification.
Get API Keys
Navigate to Settings → API Keys in Razorpay dashboard to generate your Key ID and Key Secret.
Configure in WACM
Enter your Razorpay credentials in WACM dashboard under Settings → Payments.
{
"razorpay_key_id": "rzp_live_xxxxxxxx",
"razorpay_key_secret": "your_secret_key"
}Configure Webhook
Set up Razorpay webhook to receive payment notifications:
https://api.wacm.in/api/wpbox/razorpay-webhookPayment Lifecycle
Flow Variables
Use these payment variables in your AI Flow Builder for advanced automation:
Payment Variables
| Parameter | Type | Required | Description |
|---|---|---|---|
| payment_id | string | Optional | Razorpay payment ID |
| order_id | string | Optional | Order reference ID |
| amount | number | Optional | Payment amount in smallest currency unit |
| currency | string | Optional | Currency code (e.g., INR) |
| status | string | Optional | Payment status: captured, failed, refunded |
| customer_name | string | Optional | Customer name from payment |
| customer_email | string | Optional | Customer email address |
| customer_phone | string | Optional | Customer phone number |
| payment_method | string | Optional | Payment method used (card, upi, netbanking) |
| payment_link | string | Optional | Generated payment link URL |
Subscription Management
WACM supports Razorpay subscriptions for recurring billing. Create subscription plans and manage the full subscription lifecycle through WhatsApp.
{
"plan_id": "plan_xxxxxxxx",
"customer_notify": 1,
"quantity": 1,
"total_count": 12,
"start_at": 1704067200,
"expire_by": 1735689600,
"notes": {
"customer_id": "123",
"wacm_company_id": "456"
}
}Subscription Events
Monitor subscription.created, subscription.charged, and subscription.cancelled events via webhooks for real-time updates.
Security
Webhook Signature Verification
All Razorpay webhooks are verified using the webhook secret to ensure authenticity.
PCI DSS Compliance
Razorpay is PCI DSS Level 1 certified. No sensitive payment data is stored on WACM servers.
Shop API Reference
Explore the full eCommerce and payment API documentation.