Connect Razorpay for WooCommerce to WhatsApp and AI Chat
Yes. AeroChat works directly with your WooCommerce store and the Razorpay account behind Razorpay for WooCommerce. It sends Razorpay payment links for orders agreed in the chat, moves the WooCommerce order to processing once Razorpay shows it as paid, and answers payment and refund questions from Razorpay and WooCommerce, on WhatsApp, Instagram, web chat and every other channel your shoppers use.
Razorpay for WooCommerce is Razorpay’s own plugin for taking payments at your WooCommerce checkout, with methods such as cards, UPI, net banking and wallets in India, and FPX, DuitNow and e-wallets in Malaysia. It handles checkout on your site. AeroChat handles the conversations around it. A shopper on WhatsApp, Instagram, Messenger, Telegram, web chat or email decides to buy, and AeroChat creates the order in WooCommerce, sends a Razorpay payment link for the total and confirms the order once Razorpay shows it as paid. When someone asks whether a payment or a refund went through, AeroChat reads the answer from WooCommerce and Razorpay. Your WooCommerce store is built into AeroChat, and Razorpay connects through its public API. You describe the workflow in your own words, and AeroChat builds it.
This page covers the WooCommerce side. For Razorpay on its own, for bookings, fees and deposits outside a store, see Razorpay and AeroChat.
What you can do with Razorpay for WooCommerce and AeroChat
- Send a Razorpay payment link for a chat order. AeroChat creates the order in WooCommerce as pending payment, creates a Razorpay payment link for the total with the order number as the reference, and sends it in the chat.
- Mark the order paid when Razorpay confirms. When Razorpay shows the link as paid, AeroChat sets the WooCommerce order to processing and adds a note with the Razorpay payment ID. The customer never has to tell you they paid.
- Answer “did my payment go through?”. AeroChat reads the order in WooCommerce and the payment in Razorpay, and tells the customer whether it is paid, still open or failed.
- Turn a cash on delivery order into a prepaid one. When you confirm a COD order in chat before dispatch, AeroChat can offer a Razorpay link to pay now instead. See cash on delivery confirmation for WooCommerce.
- Take a part payment on a large order. Razorpay links can accept partial payments, so AeroChat can send a link that takes a first amount and tell the customer what is still due.
- Replace an expired link. If a link expired before the customer paid, AeroChat cancels it and sends a new one for the same order.
- Answer “where is my refund?”. AeroChat reads the refund in Razorpay and tells the customer whether it is pending, processed or failed, with the bank reference they can quote to their bank.
Prefer payments built in? Airwallex is built into AeroChat, so payment links work without an API setup. See how it works. No Airwallex account yet? Open one through AeroChat.
What it looks like on WhatsApp
Customer: I’ll take the cotton kurta set in M, two of them. (example)
AeroChat: Two cotton kurta sets in M are ₹2,598, plus ₹120 delivery, ₹2,718 in total. Shall I place the order?
Customer: Yes.
AeroChat: Here’s your Razorpay payment link for order #8410. You can pay by UPI, card or net banking. The order is confirmed as soon as it’s paid.
AeroChat: Payment received, thank you. Order #8410 is confirmed and ships tomorrow.
In WooCommerce: order #8410 appears as pending payment, then moves to processing with a note carrying the Razorpay payment ID. The money is in your Razorpay account.
Customer: The shop said my refund was sent. I don’t see it. Order 8233. (example)
AeroChat: Your refund of ₹1,299 for order #8233 was processed by Razorpay on 4 November. If it hasn’t shown yet, you can give your bank this reference: 1234567890 (example).
In WooCommerce: nothing changes. AeroChat read the order and the refund’s status and bank reference in Razorpay.
Works on every chat channel
Your shoppers message you wherever they already are. The same connection and the same workflows run on each of these channels, and WooCommerce stays the record whichever one they use.
| Channel | What your shoppers can do |
|---|---|
| Message your WhatsApp Business number to order and pay by Razorpay link, or ask whether a payment or refund went through. Voice notes are transcribed, so a spoken request works too. | |
| Send the same requests by direct message. A comment on your post can get an automatic reply that moves the conversation to a DM. | |
| Facebook Messenger | Send the same requests to your Facebook Page. Comments on your Page posts can get an automatic reply too. |
| Telegram | Send the same requests to your business on Telegram. |
| Web chat | Do the same from the chat on your WooCommerce store, without leaving the page. |
| Write to your Gmail or Office 365 address and get the same answer the chat gives. |
How the connection works
There are two parts. Your WooCommerce store is built into AeroChat: the AeroChat WordPress plugin syncs your products, prices and stock, and order lookups and new orders go through WooCommerce’s REST API with a key you create in WooCommerce. Razorpay connects through its public API, documented at razorpay.com/docs/api. AeroChat does not change Razorpay for WooCommerce or your checkout. It works with the same Razorpay account the plugin pays into.
- What AeroChat reads: from WooCommerce, orders with their status, total, payment method, paid date, refunds and notes, and customers by email. From Razorpay, payment links with their status and amount paid, payments with their status, and refunds with their status and bank reference.
- What AeroChat writes: to WooCommerce, new orders as pending payment, status changes to processing or canceled, and order notes. To Razorpay, new payment links and cancellations of links that are still unpaid.
To connect WooCommerce, install the AeroChat WordPress plugin, then go to WooCommerce, Settings, Advanced, REST API, add a key with read and write access, and copy the consumer key and secret. To connect Razorpay, log in to your Razorpay Dashboard, open Account and Settings, then API Keys, and generate a key. Copy the Key Id and Key Secret, which Razorpay shows only once. Test with Test mode keys first, then switch to Live keys.
Each payment link carries a reference that must be unique in Razorpay, so AeroChat uses the order number and adds a suffix when it replaces a link. AeroChat sends the link in the chat itself, so it switches off Razorpay’s own SMS and email for that link. For orders paid at your site checkout, the plugin’s changelog says it adds the Razorpay order ID to the WooCommerce order notes, so AeroChat can find the payment behind the order.
You describe the workflow in your own words, for example “when a customer confirms an order, create it in WooCommerce and send a Razorpay link for the total”. AeroChat builds the workflow as a draft and asks for the keys by name. You enter them in the AeroChat dashboard. They never pass through the conversation.
Customers pay on Razorpay’s own page, so AeroChat never sees card or bank details and never holds money. Funds settle into your Razorpay account under your Razorpay terms.
Workflows to copy
Seven ready-made workflows for a WooCommerce store on Razorpay. Copy one into AeroChat, add your keys, and it runs on every channel.
1. Send a Razorpay payment link for a chat order
Copy this into AeroChat
When a customer confirms what they want, read back the items, delivery and total from our WooCommerce catalog and ask them to confirm. Ask for their name, email, phone number and delivery address. Create the order in WooCommerce with status pending payment. Create a Razorpay payment link for the order total with the order number as the reference and a short description of the items. Switch off Razorpay’s own SMS and email for the link and set it to expire in 24 hours (example). Send the link in the chat. Never ask for card or bank details in the chat. Reply in the customer’s language.
2. Mark the order paid when Razorpay confirms
Copy this into AeroChat
After you send a Razorpay link for an order, wait for Razorpay to show the link as paid. When it is paid, set the WooCommerce order to processing, add an order note with the Razorpay payment ID, and confirm the order number, items and delivery time in the same chat. Do not create a second link for the same order.
3. Answer “did my payment go through?”
Copy this into AeroChat
When a customer asks whether their payment went through, ask for the order number and check that the email or phone number they give matches the WooCommerce order. If we sent a Razorpay link for it, read the link’s status. If they paid at checkout, find the Razorpay order ID in the order notes and read its payments. Tell them whether it is paid, still open or failed, with the amount. If it failed, tell them they were not charged for that attempt and send a new link. Never share another customer’s order.
4. Turn a cash on delivery order into a prepaid one
Copy this into AeroChat
When you confirm a cash on delivery order with a customer before dispatch, ask whether they would like to pay now instead. If they say yes, create a Razorpay payment link for the order total with the order number as the reference and send it. When it is paid, change the order’s payment method in WooCommerce to Razorpay, add a note with the Razorpay payment ID, and confirm it ships as prepaid. If they prefer to pay on delivery, confirm the COD order as it is.
5. Take a part payment on a large order
Copy this into AeroChat
When a customer places an order above US$500 (example) and asks to pay in parts, create a Razorpay payment link for the full total that accepts partial payments, with a first payment of at least 30% (example). Send it and explain how much is due now. When Razorpay shows the link as partly paid, tell them the amount received and what is still due. Confirm the order for dispatch only once the link shows as paid.
6. Replace an expired link
Copy this into AeroChat
When a customer wants to pay but their Razorpay link has expired, check the WooCommerce order is still pending payment and the items are still in stock. Cancel the old link if it is not already expired, create a new link for the same total with the order number plus “-2” as the reference, and send it. If the items are no longer in stock, tell them and hand the conversation to our team.
7. Answer “where is my refund?”
Copy this into AeroChat
When a customer asks about a refund, ask for the order number and check their details match the WooCommerce order. Read the refunds on the order and find the Razorpay payment. Read its refunds in Razorpay. Tell them the amount and whether Razorpay shows the refund as pending, processed or failed. If it is processed, give them the bank reference Razorpay shows so they can ask their bank. If it failed, hand the conversation to our team with the order number. Never issue a refund yourself.
Who uses it
WooCommerce stores in India and Malaysia that take payment with Razorpay for WooCommerce use it to sell in chat and to answer payment questions without anyone opening the Razorpay Dashboard. These pages show the same store workflows from the WooCommerce side:
- Payment links for WooCommerce orders
- Cash on delivery confirmation for WooCommerce
- Refund questions for WooCommerce orders
What stays in WooCommerce and Razorpay
WooCommerce stays your record of orders, and Razorpay stays your record of every payment, link and refund. Checkout on your site keeps running through Razorpay for WooCommerce with the methods you switched on. Settlements, disputes and reports stay in your Razorpay Dashboard. Refunds are issued by your team, as they are now.
AeroChat handles the conversation. It creates the orders and links your recipes ask for, reads their status and tells the customer, and leaves the rest to WooCommerce, Razorpay and your team.
WhatsApp workflows for this setup
These end-to-end WhatsApp workflows run with WooCommerce and Razorpay behind them. See them all in the WhatsApp workflows library.
- WhatsApp Payment Links That Confirm the Order When Paid
- WhatsApp Ordering That Writes the Order Into Your System
Questions
Does AeroChat work with Razorpay for WooCommerce?
Yes. AeroChat connects to your WooCommerce store and to the Razorpay account the plugin uses, through WooCommerce’s REST API and Razorpay’s public API. It is not a Razorpay product, and AeroChat has no partnership with Razorpay.
Can customers pay with UPI or FPX from the chat?
Yes, where your Razorpay account offers them. The customer taps the link, chooses a method on Razorpay’s page, and AeroChat confirms the order in the chat once Razorpay shows it as paid.
Does AeroChat hold my money or see bank details?
No. Customers pay on Razorpay’s page, so AeroChat never sees card numbers or bank logins and never holds your funds.
Which plan do I need?
On the Razorpay side, you need the Razorpay account the plugin already uses and its API keys. Razorpay’s fees are charged to that account. On the WooCommerce side, you need a REST API key with read and write access. On the AeroChat side, workflows via Skills are on every plan, with a 7-day free trial. Choose by message volume on the pricing page.
Using a different system? If it has a public API, it connects to AeroChat the same way: describe what you want, paste in its key, and it runs.
Can’t find your tool? Message us in the chat on this page and we’ll tell you how it connects.
Connect your WooCommerce store and Razorpay to your chat
Paste the payment link recipe, add your WooCommerce key and Razorpay Test mode keys, and place an order from your own number.
Start your 7-day free trial. No credit card needed.
Sign up for an annual plan on Growth or above and we’ll set up your workflows and connect WooCommerce and Razorpay for you, free. See plans.
