WACM.in Logo
Back to Documentation

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

1

Create Razorpay Account

Sign up at razorpay.com and complete KYC verification.

2

Get API Keys

Navigate to Settings → API Keys in Razorpay dashboard to generate your Key ID and Key Secret.

3

Configure in WACM

Enter your Razorpay credentials in WACM dashboard under Settings → Payments.

Configuration
{
  "razorpay_key_id": "rzp_live_xxxxxxxx",
  "razorpay_key_secret": "your_secret_key"
}
4

Configure Webhook

Set up Razorpay webhook to receive payment notifications:

Webhook URL
https://api.wacm.in/api/wpbox/razorpay-webhook

Payment Lifecycle

1
Order CreatedPending
2
Payment Link SentVia WhatsApp
3
Customer Completes PaymentRazorpay
4
Webhook Confirms PaymentSuccess
5
Confirmation SentVia WhatsApp

Flow Variables

Use these payment variables in your AI Flow Builder for advanced automation:

Payment Variables

ParameterTypeRequiredDescription
payment_idstringOptionalRazorpay payment ID
order_idstringOptionalOrder reference ID
amountnumberOptionalPayment amount in smallest currency unit
currencystringOptionalCurrency code (e.g., INR)
statusstringOptionalPayment status: captured, failed, refunded
customer_namestringOptionalCustomer name from payment
customer_emailstringOptionalCustomer email address
customer_phonestringOptionalCustomer phone number
payment_methodstringOptionalPayment method used (card, upi, netbanking)
payment_linkstringOptionalGenerated payment link URL

Subscription Management

WACM supports Razorpay subscriptions for recurring billing. Create subscription plans and manage the full subscription lifecycle through WhatsApp.

Subscription Example
{
  "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.

View API