Skip to content
RPA & Workflows 5 min read Published Sep 14, 2026 Updated Sep 17, 2026

Razorpay UPI & WhatsApp n8n Automation

Shubamjeet Singh
Contributor, VectorBloom · Enterprise Automation
Direct Answer (BLUF)
Executive Summary · ~50 words

Automating Razorpay UPI payment links in n8n for WhatsApp orders requires receiving incoming order data via the WhatsApp Cloud API webhook. Then you invoke Razorpay's Payment Links API with UPI parameters to generate a link. Next, send the URL back inside the active messaging window. Finally, verify incoming webhook signatures to reconcile order payments idempotently.

Summarize with ChatGPT Perplexity Grok

Why does conversational checkout fail for most Indian SMBs?

Everyone believes selling on WhatsApp requires an army of support reps. Here’s why that’s wrong. Adding more humans to handle chats actually breaks your checkout funnel.

Indian SMBs process a huge share of orders through WhatsApp chats. The standard workflow relies on manual busywork. An agent calculates order amounts, manually creates a payment link in a dashboard, pastes it into chat, and refreshes banking screens to verify settlement.

This manual loop kills conversion rates. It causes billing errors, and it frustrates customers who wait around for receipts. If you built custom automation using our guide on WhatsApp Business Cloud API Setup for Indian SMBs: The 2026 Production Blueprint, manual link generation ruins your conversational flow.

Connecting chat flows directly to the gateway fixes this. When you orchestrate Razorpay and webhooks inside n8n, you generate dynamic UPI links instantly. You monitor live transaction events, and you update your backend without human bottlenecks.

Is this starting to feel like a lot?

Let us handle the busy work. LoomVector builds and ships this exact kind of system for Indian SMBs, end to end.

Talk to LoomVector

Step-by-Step Implementation

Step 1: Ingest the WhatsApp Order Payload in n8n

  1. Add a Webhook node in n8n to catch inbound messages from the WhatsApp Cloud API.
  2. Configure the webhook to parse the buyer’s phone number (from), requested SKU, and quantity.
  3. Use a Set node or database lookup node to pull pricing and calculate the total. Multiply the final balance by 100 to convert the price into paise.

Generate dynamic links that launch UPI apps directly on mobile devices:

  1. Add an HTTP Request node using your Razorpay Key ID and Key Secret via Basic Auth.
  2. Set the method to POST targeting https://api.razorpay.com/v1/payment_links.
  3. In the JSON body, pass:
    • amount: Total price in paise (Rs 499 becomes 49900).
    • currency: "INR".
    • accept_partial: false.
    • reference_id: Your unique internal order identifier.
    • description: Order payment details.
    • customer: Object containing name, contact, and email.
    • upi_link: true to enable deep-linking into UPI apps.
  4. Extract the short_url from the Razorpay response object.

According to Create a UPI Payment Link – Razorpay, the Payment Links API accepts amount, currency, reference_id, customer contact details, and upi_link: true together to generate a UPI-specific deep link exactly like the one this step builds.

  1. Add an HTTP Request node targeting the WhatsApp Cloud API messages endpoint.
  2. If the user messaged within 24 hours, send a session message with an interactive CTA button or text link pointing to short_url.
  3. For interactive buttons, set the button type to url with the target set to your payment link.
  4. Update your database or order sheet to mark the status as payment_pending.

According to Service messages | Meta for Developers – Facebook, the WhatsApp Cloud API allows free-form session messages during this 24-hour customer service window without needing a pre-approved template.

Step 4: Configure the Razorpay Reconciliation Webhook

  1. Create a second workflow in n8n with a dedicated Webhook node. Set the method to POST and enable Raw Body.
  2. Copy the production webhook URL from n8n. Paste it into your Razorpay Dashboard under Settings > Webhooks.
  3. Select the payment.captured event and save a strong Webhook Secret.

According to Receive WhatsApp Payments via Payment Links | Client Documentation – 360Dialog Docs, reliable WhatsApp payment link checkouts depend on passing the same reference ID through the chat flow, the payment gateway link, and the settlement reconciliation step, exactly the pattern Steps 4 and 5 implement here.

Step 5: Verify Webhook Signatures and Handle Reconciliation

  1. Verify transaction security inside n8n using the raw payload and your secret:
    • Compute the HMAC SHA-256 hash of the raw body using your Razorpay Webhook Secret.
    • Add an If node to compare this hash with the incoming x-razorpay-signature header. If they don’t match, halt execution with an HTTP 400 response.
  2. Check your database using reference_id or payment ID. Confirm it isn’t already completed so you avoid duplicate actions when Razorpay retries webhooks.
  3. Update the order status to paid and save the payment ID.
  4. Send an order confirmation template or session message back to the customer on WhatsApp with receipt details.
  5. Return an immediate HTTP 200 response to Razorpay to confirm receipt.

Need assistance setting up reliable conversational commerce workflows, secure webhooks, and backend accounting integrations for your business? LoomVector helps teams design, deploy, and maintain custom n8n and API orchestration systems tailored to Indian business operations.

Sources

Checked on 15 Sep 2026 when this guide was researched:

  1. Create a UPI Payment Link – Razorpay razorpay.com
  2. Service messages | Meta for Developers – Facebook developers.facebook.com
  3. Receive WhatsApp Payments via Payment Links | Client Documentation – 360Dialog Docs docs.360dialog.com

<!–[googlesitekit-end-of-content]–>

Key Takeaways
3 Points
  1. 01
    Calculate values in paise: Always multiply Indian rupee amounts by 100 in n8n payloads. It prevents undercharging customers.
  2. 02
    Enforce cryptographic verification: Always compute HMAC SHA-256 signatures against the raw webhook body using your secret. It blocks forged requests.
  3. 03
    Build idempotent reconciliation: Always verify existing order status against the reference ID before fulfilling payments.
Get new posts by email

Direct implementation blueprints for Indian SMBs. One email per post, no spam.

By subscribing you agree to receive email updates and our Privacy Policy.

Advertisement
TEST AD SLOT
In-Article (Responsive)
Frequently Asked Questions
Share & Distribute Blueprint

Found this blueprint valuable?

Share with your engineering team, founder circles, or tech communities to accelerate deployment.

Was this helpful?
Shubamjeet Singh
Shubamjeet Singh Contributor, VectorBloom LinkedIn

Shubamjeet writes from six years advising enterprise clients on RPA, BPM, and applied ML — translating what actually pays off at enterprise scale into practical playbooks for Indian SMBs.

Need help implementing this blueprint in production?

LoomVector engineers custom web applications, direct WhatsApp Cloud API integrations, and self-hosted n8n enterprise workflows.

Talk to LoomVector
Link copied to clipboard

Get new posts by email

Direct implementation blueprints for Indian SMBs. No spam.

By subscribing you agree to receive email updates and our Privacy Policy.