WhatsApp Razorpay Payment Link: From Chat to Paid Order Without Manual Copy-Paste
Turn WhatsApp orders into paid orders with a Razorpay payment link. Learn the webhook, reconciliation and distributor checks that stop copy-paste errors.
A distributor’s WhatsApp order workflow almost always breaks down in the same place: the order details in chat are clear, but the proof of payment is a compressed screenshot buried in a different conversation thread, and the ledger update happens hours later from memory.
Direct answer: A WhatsApp Razorpay payment link turns a confirmed chat order into a paid, reconciled order by binding one unique internal order ID across your chat thread, the hosted Razorpay payment link, the signed webhook callback, and your accounting ledger. Create an individual payment link per order, dispatch it within an approved Meta Utility template with a dynamic Pay URL button, cryptographically verify Razorpay's HMAC SHA256 webhook signature upon completion, and update your ledger to Paid strictly when the gateway confirms capture. This closed loop completely eliminates manual copy-paste between WhatsApp, bank statements, and accounting software.

What changes when payment joins the chat
When a wholesale distributor scales to 40 or 50 orders a day, relying on manual payment confirmation creates an administrative logjam. Operations staff spend their afternoons cross-referencing blurred UPI screenshots against mobile banking SMS alerts, manually typing ledger vouchers into Tally, and telephoning warehouse dispatch to confirm whether an order can be packed.
The engineering solution is not an expensive, complex conversational chatbot. The solution is a deterministic closed loop:
[Chat Order Locked] ──> [Order ID Generated] ──> [Razorpay Link Created]
│ │
[Dispatch Released] <── [Tally Ledger Posted] <── [Signed Webhook Verified]Each transaction carries the exact same order reference ID across every system. Nobody retypes the customer name, the GST amount, or the order number.
This guide focuses specifically on the payment capture and reconciliation architecture. For the broader upstream flow—including natural language intake, catalog selection, and inventory reservation—read our foundational guide on the WhatsApp order automation flow.
A WhatsApp Razorpay payment link is a lightweight checkout URL hosted by Razorpay for a single transaction. The customer taps the link directly inside WhatsApp, selects their preferred payment method (UPI apps like Google Pay or PhonePe, netbanking, NEFT, or corporate cards), and completes checkout within Razorpay’s PCI-DSS compliant interface. Your business never collects card numbers or OTPs in chat, avoiding severe regulatory liabilities while delivering a seamless buyer experience.
Choose the right payment route
Before engineering an automated payment pipeline, evaluate the three primary mechanisms for collecting digital payments via WhatsApp in India:

| Payment route | Buyer checkout experience | Confirmation & reconciliation | Architectural recommendation |
|---|---|---|---|
| Razorpay Payment Link (Recommended) | Taps an interactive "Pay" button in chat; opens hosted Razorpay checkout; returns to WhatsApp upon completion. | Fully automated: Instant confirmation via signed webhook callbacks (payment_link.paid). | Optimal for 90%+ of B2B distributors. Flexible payment methods (UPI, cards, netbanking), supports partial payments, fast 2-week implementation. |
| Meta Payments API / WhatsApp Pay | Native in-chat checkout; selects items from a synced catalog and pays with UPI PIN without leaving the app. | Fully automated: Direct callbacks through Meta and integrated payment service provider endpoints. | High-volume retail/DTC only. High implementation complexity; requires strict product catalog synchronization; less suitable for B2B credit and partial advances. |
| Static UPI QR Code Image | Buyer takes a screenshot of a static QR image or scans it from another phone; types amount manually; sends screenshot proof. | 100% manual: Staff must visually inspect bank SMS alerts or merchant app receipts to verify funds. | Avoid for automated operations. Prone to screenshot forgery, mismatched amounts, and high human overhead. Only suitable as an emergency offline fallback. |
For wholesale distributors, starting with Razorpay Payment Links provides the highest return on investment. It preserves the familiar WhatsApp conversation while delegating checkout security, payment method diversity, and instant webhook notifications to Razorpay's robust infrastructure.
Build the flow in 6 steps
Engineering a reliable WhatsApp payment pipeline requires six coordinated steps across your backend, the WhatsApp Business API, and Razorpay.

Step 1: Confirm the order before generating a payment link
Never generate a payment link based on an ambiguous chat inquiry. Lock four mandatory parameters before initializing checkout:
- Buyer identity: Verified business entity name, GSTIN, and authorized mobile number.
- Itemised line items: Exact SKUs, case packaging, unit prices, and quantities.
- Total invoice amount: Taxable value plus applicable CGST/SGST or IGST.
- Fulfillment terms: Specified delivery address, transport carrier, or warehouse pickup terms.
Generate a unique internal order reference ID—for example, VAD-2026-1184. This primary key binds the WhatsApp conversation, the Razorpay payment link, the webhook payload, and your accounting ledger together.
Step 2: Create one unique Payment Link per order
Call Razorpay's Payment Links API (POST /v1/payment_links) from your backend server. Construct the payload with exact order parameters:
{
"amount": 3456000,
"currency": "INR",
"accept_partial": false,
"description": "Order VAD-2026-1184: 12 cases Edible Oil",
"customer": {
"name": "Patel Stores",
"contact": "+919825000000",
"email": "[email protected]"
},
"notify": {
"sms": false,
"email": false
},
"reminder_enable": false,
"notes": {
"order_id": "VAD-2026-1184",
"distributor_id": "DIST-VAD-04"
},
"reference_id": "VAD-2026-1184",
"expire_by": 1795900800
}Key architectural rule: Always set a realistic expiry window (typically 24 to 48 hours for commercial trade orders). Disable Razorpay’s native SMS/email notifications (notify: { sms: false, email: false }) so your custom WhatsApp automation maintains exclusive ownership of buyer communications.
Step 3: Send the link in an approved Meta Utility template
Outside Meta's 24-hour customer service window, you cannot send free-form text messages. You must utilize a pre-approved WhatsApp Business template.
Classify your payment reminder template under the Utility category, not Marketing. Payment notifications for confirmed, existing orders are strictly transactional. Utility templates ensure higher delivery priority and cost roughly ₹0.115 per delivered message in India, compared to ₹0.863 for Marketing templates (a 7.5x cost difference).
Keep the template copy strictly factual:
"Hello {{1}}, your order {{2}} has been confirmed for ₹{{3}}. Please complete your payment securely using the link below. This link expires in {{4}} hours."
Configure an interactive Quick Pay URL button (https://rzp.io/i/{{5}}). Interactive buttons generate higher conversion rates and prevent formatting errors compared to pasting raw URLs into chat paragraphs.
Step 4: Listen for webhooks and enforce signature verification
Configure your webhook receiver to subscribe to critical payment lifecycle events on your Razorpay dashboard:
payment_link.paid: The link has been fully paid.payment_link.partially_paid: An advance or partial payment was received on a Standard Link.payment_link.expired: The payment window elapsed without payment capture.payment.captured: The underlying payment transaction succeeded.payment.failed: The transaction failed (insufficient funds, bank downtime, UPI timeout).
Enforce cryptographic signature verification on every incoming POST request. Razorpay includes an X-Razorpay-Signature header calculated using an HMAC SHA256 hash of the raw request body and your webhook secret:
import crypto from "node:crypto";
export function verifyRazorpayWebhook(rawBody: string, signature: string, secret: string): boolean {
const expectedSignature = crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
return crypto.timingSafeEqual(
Buffer.from(expectedSignature, "utf8"),
Buffer.from(signature, "utf8"),
);
}If signature verification fails, log the anomaly and reject the request with HTTP 400. Never mark an order paid without valid signature verification.
Step 5: Mark the order paid only on verified gateway confirmation
When a verified payment_link.paid or payment.captured event arrives, extract the reference_id (matching your internal order ID VAD-2026-1184) and the unique payment_id (e.g., pay_Pq7x9JkL12).
Update your database record:
- Set
order_status = "PAID". - Record
payment_method = "UPI"(or Netbanking/Card). - Store
razorpay_payment_id = "pay_Pq7x9JkL12". - Timestamp the transaction.
The Golden Reconciliation Rule: Never mark an order paid because a customer sends a screenshot, pastes a UPI UTR number in chat, or claims "payment done." The cryptographically signed webhook is your sole authoritative proof of payment.
Step 6: Send instant confirmation and release warehouse dispatch
Immediately dispatch an automated confirmation message via WhatsApp informing the buyer that their payment was received, citing the transaction ID and delivery schedule.
Simultaneously, emit an internal operational event to unlock dependent business workflows:
- Generate an electronic sales invoice in Tally or your ERP.
- Transmit a packing slip to warehouse dispatch.
- Adjust inventory balances to prevent double-booking.
If the payment failed, trigger an automated retry template offering alternative payment methods. If the link expired, programmatically generate a fresh link for the same order ID.
Reconciliation: The rule that keeps the books clean
Reconciliation means that for every rupee collected, a single order ID maintains identical records across four independent environments:

| Verification check | Authoritative pass criteria | Operational failure risk |
|---|---|---|
| Order ID parity | The identical order number (VAD-2026-1184) exists in chat, link reference, webhook payload, and Tally ledger. | Unmatched payments floating in general bank accounts without customer allocation. |
| Amount integrity | Captured amount matches the exact confirmed invoice total down to the paise. | Short payments accepted inadvertently; margin erosion on wholesale lots. |
| Payment ID tracking | Razorpay's unique payment_id is written directly into the accounting voucher narration. | Inability to audit transactions during GST reconciliation or bank chargeback disputes. |
| Webhook verification | Status transitions to Paid only upon verified HMAC SHA256 webhook execution. | Releasing goods against fabricated or altered payment screenshots. |
| Settlement decoupling | Payment capture and bank settlement (T+1 or T+2 days) are tracked as separate accounting stages. | Cash flow confusion caused by netting merchant gateway fees against gross invoice value. |
| Exception ownership | Expired links, partial payments, and bank transfer overrides have designated human owners. | Stalled warehouse orders and customer friction during peak dispatch hours. |
A frequent accounting mistake is conflating payment capture with bank settlement. Razorpay captures funds immediately, but settles net proceeds into your corporate bank account according to your settlement schedule (typically T+1 or T+2 business days), deducting gateway processing fees (typically 2% + GST). Maintain payment capture and bank settlement as separate ledger reconciliation steps.
Distributor decisions: Credit, part payment, and dispatch
Wholesale distributors operate under distinct commercial realities that generic e-commerce checkout flows cannot accommodate. Define clear business rules before activating payment automation:
1. Pre-approved credit accounts (15 to 30 day terms)
Retailers on established credit terms should not be harassed by automated payment reminders. When confirming an order for a credit account, configure your workflow to verify available credit limits. If the order falls within the buyer's credit threshold, send an order acknowledgement stating: "Confirmed under agreed 15-day credit terms. Payment due on 15 December 2026." Save your payment links for prepaid accounts or overdue credit recovery.
2. Handling partial payments and advance deposits
In high-value wholesale transactions, distributors frequently require an advance deposit (e.g., 25% or 50%) before dispatching bulk inventory. Standard Razorpay Payment Links allow partial payments (accept_partial: true).
Listen for the payment_link.partially_paid webhook event. Your backend should credit the customer's ledger with the advance payment while maintaining the order in an ADVANCE_PAID state, releasing warehouse packing while withholding final transport delivery receipts until the balance clears. Note that UPI-specific payment links do not support partial payments; use Standard Payment Links if partial advances are required.
3. The non-negotiable dispatch hold rule
Establish an uncompromising written policy for your logistics and dispatch teams:
$$\text{Dispatch Authorization} = \text{Verified Webhook Status (PAID)} \lor \text{Approved Credit Limit Check}$$
Under no circumstances should warehouse personnel release commercial stock based on a customer's payment screenshot or promises in chat. Enforcing this single rule eliminates virtually all disputed delivery losses.
4. Handling payments made outside the link (NEFT / RTGS / Cheque)
Wholesale buyers will inevitably make direct bank transfers via NEFT or RTGS. When this occurs, require accounting staff to log the receipt into your central system using the exact internal order ID (VAD-2026-1184). If offline receipts are recorded in separate notebooks, automated reconciliation fails and the system will mistakenly treat the order as unpaid.
What it costs: Meta messages and gateway fees
Budgeting for automated WhatsApp collections involves two primary direct operating expenses:
1. Meta WhatsApp Business API conversation charges
In India, WhatsApp charges for business communications on a per-message or conversation basis:
- Utility templates: Billed at approximately ₹0.115 per delivered message. Transactions like payment links, order confirmations, and delivery tracking belong in this tier.
- Marketing templates: Billed at approximately ₹0.863 per delivered message (roughly 7.5x higher).
- Service conversations: 1,000 free customer-initiated service conversations per month per WhatsApp Business Account.
Maintaining strictly factual payment requests within approved Utility templates preserves your operating margins.
2. Razorpay payment processing fees
For domestic Indian transactions, Razorpay typically charges a standard fee of 2% + 18% GST on transaction volume across domestic credit cards, debit cards, netbanking, and commercial wallets. Unified Payments Interface (UPI) transactions often qualify for preferential merchant discount rates or zero MDR under prevailing regulatory guidelines. Always review your specific merchant pricing agreement on your Razorpay dashboard.
To evaluate whether automating this workflow makes commercial sense, apply our AI automation ROI method. Calculate the total labor hours spent by your operations staff chasing screenshots, calling retailers, and manually entering vouchers into Tally, and compare that against your monthly API and gateway costs.
Compliance and data privacy: India DPDP and regional considerations
India: The Digital Personal Data Protection Act, 2023 (DPDP)
When automating customer communications in India:
- Data minimization: Collect only the customer data strictly necessary to fulfill the commercial order (name, delivery address, phone, GSTIN).
- Strict payment security: Never request, collect, or store credit card numbers, CVVs, netbanking passwords, or UPI PINs inside WhatsApp chats, spreadsheets, or server logs. Razorpay's PCI-DSS Level 1 environment isolates all sensitive banking credentials.
- Access governance: Restrict internal access to customer phone numbers and financial transaction histories to authorized accounting personnel.
Cross-border operations: The UAE market
While WhatsApp business messaging is prevalent across the United Arab Emirates, implementing WhatsApp payment links for GCC distribution requires evaluating three distinct factors:
- Currency and gateway entity: Ensure your payment gateway entity is configured to accept UAE Dirhams (AED) or multi-currency settlements.
- Local messaging regulations: Verify international template pricing and sender ID registration with UAE telecommunication operators (e& and du).
- Data protection laws: Comply with UAE Federal Decree-Law No. 45 of 2021 regarding Personal Data Protection when processing customer records.
Common mistakes to avoid
- Reusing a single static payment link across multiple buyers: A shared link makes it impossible for automated systems to determine which customer paid, destroying ledger reconciliation.
- Appending promotional banners to Utility payment templates: Including discount pitches or marketing announcements will cause Meta to reclassify the template as Marketing, multiplying message costs by 7.5x or leading to template rejection.
- Approving orders based on payment screenshots: Mobile payment screenshots are easily altered or fabricated using basic editing apps. Enforce automated webhook verification as your sole proof of payment.
- Failing to manage expired payment links: When a payment link expires after 24 hours, programmatically generate a new link for the same order ID rather than asking the buyer to transfer funds to a personal bank account.
- Treating cash-on-delivery and credit accounts identically: Maintain distinct workflow states for credit, advance, and prepaid orders.
- Neglecting cryptographic webhook verification: Exposing an unauthenticated webhook endpoint leaves your system vulnerable to spoofed payloads that falsely mark unpaid orders as fulfilled.
Illustrative example: A Vadodara FMCG distributor
Illustrative operational scenario.
Consider a wholesale FMCG and edible oil distributor based in Makarpura GIDC, Vadodara, supplying 120 retail kirana stores across central Gujarat. On average, the company processes 40 WhatsApp orders daily:
Before Automation:
- Two administrative staff members manually monitor WhatsApp chats, transcribing orders into paper notebooks.
- Staff generate separate payment requests and spend 3 hours daily chasing payment screenshots via phone calls.
- In the evening, an accountant manually types each payment receipt into Tally ERP, routinely finding 4 to 6 unidentified UPI payments in the company bank account.
- Warehouse dispatch is consistently delayed until 6:00 PM while waiting for payment verification.
After WhatsApp Razorpay Automation:
- A retailer messages their standard order via WhatsApp. The system locks items and generates internal order ID
VAD-2026-1184. - The backend calls Razorpay to generate an individual Payment Link for ₹34,560, bound to
VAD-2026-1184. - The retailer receives an automated WhatsApp Utility template containing an interactive ⚡ Pay ₹34,560 button.
- The retailer taps the button and pays via PhonePe UPI.
- Razorpay emits a signed
payment_link.paidwebhook to the distributor's secure endpoint. - The signature verifies successfully. The system automatically updates the order status to
PAID, generates a Tally receipt voucher with payment IDpay_Pq7x9JkL12, sends an instant WhatsApp confirmation to the retailer, and releases the warehouse packing slip. - Orders clear for dispatch by 11:30 AM with zero human transcription errors.
By removing manual human friction between chat, payment, and accounts, the operations manager transitions from being an administrative bottleneck into supervising high-value logistics and customer relationships. For broader operational automation architectures, explore our guide on AI agents for business operations.
Frequently asked questions
Can I collect a Razorpay payment entirely inside WhatsApp?
With a Razorpay Payment Link, the buyer stays within the conversational context, taps an official Pay button, and completes checkout on a secure, mobile-optimized Razorpay interface before returning to chat. This delivers a seamless experience. It differs from Meta's native Payments API, which renders an in-chat product catalog and payment interface natively without opening an external browser view.
Which WhatsApp template category should a payment link use?
Always use the Utility category for payment requests tied to confirmed orders. Utility messages are strictly transactional, enjoy higher delivery rates, and cost roughly ₹0.115 per delivered message in India, compared to ₹0.863 for Marketing templates. Avoid promotional text or upsell offers within payment templates.
What happens when a Razorpay payment link expires?
When the specified expiry window (e.g., 24 or 48 hours) elapses, Razorpay triggers a payment_link.expired webhook. Your system should flag the order as EXPIRED and send an automated notification asking the buyer if they wish to refresh the order. If requested, generate a fresh payment link referencing the original order ID.
Can a buyer pay part of the invoice now and the balance later?
Yes, provided you enable partial payments on a Standard Payment Link (accept_partial: true). Razorpay emits a payment_link.partially_paid webhook for each installment. Your accounting system can record the partial receipt while withholding final dispatch until the remaining balance clears. Partial payments are not supported on UPI-only payment links.
How do I verify that a customer has actually paid?
Enforce programmatic webhook signature verification using HMAC SHA256 and your private webhook secret. When the payment_link.paid or payment.captured event arrives, extract and store Razorpay's unique payment_id against your internal order ID. Never accept chat screenshots, UTR numbers, or buyer promises as proof of payment.
What if a customer pays via direct bank transfer (NEFT/RTGS) instead of the link?
Provide an administrative portal where finance staff can manually record the bank transfer UTR number against the specific internal order ID (VAD-2026-1184). This automatically closes the pending payment link and updates the ledger, ensuring unified reporting across digital and traditional banking channels.
Should I automatically dispatch orders immediately upon payment?
Yes, provided your automation verifies both the HMAC webhook signature and matches the captured payment amount against the invoice total. Automating dispatch against verified webhooks reduces order turnaround time from hours to minutes.
Where this fits in your technology roadmap
This guide represents the financial execution component of JUHENZA's Workflow Automation practice. To engineer a complete operational system, review our parent blueprint on the WhatsApp order automation flow, examine how to measure AI automation ROI, or review our comprehensive custom software development services.
Conclusion
Stop wasting valuable administrative hours chasing compressed payment screenshots and manually retyping invoice numbers into accounting software. Turn your confirmed WhatsApp orders into a self-reconciling payment engine by binding one order ID across chat, Razorpay Payment Links, signed webhooks, and your ERP ledger.
Send a project brief to JUHENZA. Share your daily order volume, credit policies, and current accounting setup; our engineering team will help you design a reliable, compliant payment automation pipeline tailored to your wholesale distribution business.
Authoritative references
- Razorpay Developers: Create a Payment Link Documentation — Official API specification for generating standard and UPI payment links with reference IDs, notes, and expiry controls.
- Razorpay Developers: Webhook Events & Signature Verification — Technical architecture for handling
payment_link.paid,payment.captured, and HMAC SHA256 security verification. - Meta for Developers: WhatsApp Business Platform Pricing — Current rate cards for Utility, Marketing, and Authentication conversation categories in India and international markets.