UPI QR (automatic), guests pay and the bill closes by itself
Connect your own Cashfree account with your App ID and Secret Key, and the POS and the self-order kiosk show a UPI QR for the exact amount. When the guest pays, the bill is marked paid by itself.
15 min read
UPI is India only. UPI QR (automatic) is for outlets in India that bill in rupees. See Regions and countries.
UPI QR (automatic) shows the guest a UPI QR for the exact amount of the bill. When the guest pays, the bill is marked paid by itself. Nobody has to look at a UPI app and press Mark as paid. It works on the POS in the browser and on the self-order kiosk.
How it works
- You connect your own Cashfree account. The money goes straight to your Cashfree account and from there to your bank, usually in about 2 working days. AirQR never holds it.
- Cashfree's own fees apply. AirQR adds nothing. Your payments and bank transfers show in Money received.
- For each bill and amount AirQR asks Cashfree for a QR. Cashfree tells AirQR when it is paid, and AirQR checks with Cashfree before it records the payment.
- It sits next to your own UPI ID and QR from Recording payments and closing bills. It does not replace them, and you can keep using them.
- An outlet uses one payment provider at a time.
Who can do what
Role defaults are listed here. An owner can change them for each role in Team → Staff → Roles (see Staff roles).
- Connecting, testing, replacing keys and disabling needs the permission Connect the outlet's payment accounts. Owners have it. Managers do not have it by default, and an owner can switch it on for them.
- Seeing Needs review needs See guests' payments. Owners, managers, captains, cashiers and accountants have it by default.
- Resolving an item needs Verify guests' UPI and bank payments. Owners, managers and cashiers have it by default.
- Taking a UPI QR payment on the POS works for anyone who can take payments there, as for any other method.
Connect Cashfree
You need a Cashfree account that can take payments. The outlet also needs a mobile or WhatsApp number under Settings → Outlets → Contact, because Cashfree needs one with every payment. Without it AirQR says "Add a mobile or WhatsApp number in Settings → Outlets → Contact. Cashfree needs one on every payment."
- In your Cashfree dashboard (merchant.cashfree.com) open Developers → API Keys. Copy the App ID and the Secret Key from the Production keys.
- In AirQR open Settings → Payments. On the Cashfree card (UPI QR (automatic)) press I already have Cashfree.
- Paste the App ID and the Secret Key, then press Connect. AirQR checks the keys with Cashfree before it saves them. If Cashfree refuses them, AirQR says so. If you pasted test keys, it asks for your production keys.
- AirQR shows Your webhook URL, with a Copy button. It is shown only once. In Cashfree open Developers → Webhooks → Payment Gateway and add a webhook.
- Paste the URL and press Test. Cashfree must say the endpoint responded.
- Choose version 2022-09-01.
- Tick success payment, failed payment, user dropped payment and refund status, and save. (Refund status is for refunds back to the guest. If you set up the webhook before, tick it now. Without it refunds still finish, a little later.)
Then press I've pasted it in AirQR. Cashfree allows other webhooks next to AirQR's, so one you already have can stay.
- Press Test connection and then ₹1 test under Check that it works, as described below.
The webhook is how Cashfree tells AirQR the moment a guest pays. Without it the bill is marked paid later, when AirQR asks Cashfree itself, so set it up.
Cashfree allows one pair of keys at a time. If you reset your Secret Key in Cashfree, paste the new keys in AirQR at once with Replace keys.
Lost the webhook URL? The card shows "Webhook URL set on (date)". Press Generate a new webhook URL and confirm. The old URL stops working at once, so paste the new one in Cashfree → Developers → Webhooks straight away.
The card also shows the App ID it uses (only its last characters), the status (Active, Error or Disabled) and Recent messages from Cashfree, where each message shows as Handled, Ignored, Failed or Received.
Test connection and the ₹1 test
Both are on the connected card under Check that it works.
Test connection checks that AirQR can reach your Cashfree account. It says Connected. Cashfree answered. If it asks for other keys, you mixed test and production keys.
₹1 test shows a QR for ₹1. Scan it with any UPI app and pay.
- It is your own money. The ₹1 goes to your own Cashfree account and AirQR does not refund it.
- It is only a check. It creates no order, bill, invoice number or report entry.
- Messages you may see:
- Scan the QR with any UPI app and pay ₹1. Waiting for you.
- Cashfree is working. ₹1 reached your own Cashfree account. All good.
- Paid. If Cashfree's message doesn't arrive within 2 minutes, check the webhook (step 3). The payment arrived and AirQR is still waiting for Cashfree's message.
- ₹1 paid, but Cashfree's message didn't reach AirQR. Check the webhook in Cashfree → Developers → Webhooks. The webhook is missing or wrong. Check the URL, the version and the three events, or generate a new URL.
- Test not paid. Try again. Nobody paid within about 5 minutes.
- Cashfree didn't answer. Try again.
- The card keeps the result as "Last ₹1 test (date). (result)".
Taking a UPI QR payment on the POS
This is in the browser POS. The AirQR app takes UPI as before.
- Open the check and press Pay. In Settle check choose UPI.
- Choose UPI QR (automatic), which says Marked paid by itself. The other choice, UPI (own QR, mark by hand), is the way it worked before. You check your UPI app and mark it paid yourself.
- AirQR shows the QR, the amount and Expires in (time). The guest scans it with any UPI app. The bill is marked paid by itself and the window closes, as after any payment.
While the QR is up:
- Check status asks Cashfree right now, so you need not wait.
- Cancel removes the QR and takes you back.
- The bill changed · New QR appears if the bill changed after the QR was made, for example when items were added. Press New QR, because the old QR no longer matches the bill.
- If the guest's bank declines the payment, it says The last payment attempt was declined. Ask the guest to scan again, or make a new QR. Nothing was paid and the QR still works. The guest can scan it again, or press New QR for a fresh one. If the guest closed their UPI app before finishing, it says The guest left the payment before finishing. in the same way.
- If the QR runs out it says The QR expired. Press Make a new QR.
- If something fails it says Use another way to pay. Take the payment another way.
- If you choose another method such as cash while a QR is waiting, AirQR asks A UPI QR is waiting. Take cash and cancel the QR? Press Cancel the QR to go on, so the bill is not paid twice.
- If the screen says This payment needs a check. Don't take the money again., the guest may have paid and AirQR could not confirm it yet. Look under Needs review (see below) before you take the money another way.
Split bills: each guest's part gets its own QR for that part's amount. See Split bills.
Needs internet: UPI QR (automatic) says Needs internet and cannot be used offline. Choose UPI (own QR, mark by hand) then. See Using the POS offline.
The payment sound
When the guest pays and AirQR adds the payment to the bill, people who see payments at that outlet hear a short sound and see a message such as ₹450 received · Cashfree UPI · Table 5. See Notifications for who hears it and how to choose a push.
On the self-order kiosk
When the outlet has an active Cashfree connection, Pay by UPI on the kiosk becomes automatic. Switch that choice on under the kiosk's Payment settings (see Self-order kiosk).
- After the guest orders, the token screen shows the QR and the amount, with a countdown.
- The guest pays. The screen shows Payment received ✓ and the order goes straight to the kitchen. There is no I've paid · Verify payment button and nothing for staff to verify.
- If the guest's bank declines the payment, the screen says That payment didn't go through. Scan again to try once more. The same QR still works.
- If the QR times out, the guest taps Tap to try again for a new one.
- Having trouble? Pay at the counter is always there. The guest then pays at the counter as for any counter order.
Pay online at online checkout
With an active Cashfree connection, guests ordering takeaway or delivery from your online ordering page can choose Pay online. They pay on Cashfree's secure page on their own phone, with UPI apps, cards, netbanking or wallets.
- At checkout the guest picks Pay online (it comes first) and taps Pay ₹420. Under the button it says "Your order is placed when the payment goes through."
- Cashfree's page opens. The guest pays there and comes back to their order page, which says Checking your payment… and then Paid ₹420 · Order confirmed.
- The order is accepted by itself and goes to the kitchen. The KOT and the bill print by your usual rules. Your board shows Paid online · Card (or UPI, Netbanking, Wallet) and "Accepted by itself when the payment arrived".
- Until the money arrives, the order is not in the kitchen, not printed and not in your queue, and nobody hears a sound. You see it under Waiting for payment on the Takeaway & delivery board.
A delivery order works the same way. The delivery fee is part of the amount the guest pays, and once it is paid the page shows the delivery steps and Arriving by about the promised time. Delivery needs at least one delivery area first (see Delivery areas by PIN code).
If the payment doesn't go through, the guest sees Payment didn't go through with Try again and, when you allow it, Pay at pickup instead (or Pay on delivery instead). If nobody pays in time, the order is cancelled on its own after your Cancel unpaid orders after time and the guest's page says Order not placed. The guest gets one message, once the payment arrives (see Guest messages).
Set it up in Settings → Payments, in the Cashfree card under On the guest's own phone.
- Pay online at checkout is on once Cashfree is connected. Turn it off to stop offering Pay online. Guests already paying can finish.
- Guests must pay online. Tick Takeaway and/or Delivery to hide Pay at pickup / Pay on delivery for that order type.
- When Pay online is offered, Pay now by UPI (the "I've paid" choice) is not shown at checkout.
- If order protection asks a guest to pay first, that guest sees only Pay online.
Cashfree takes its fee from each payment, at the rates in your Cashfree account. Guests pay the bill amount only, and AirQR adds nothing.
Guests can pay from their phone
The same secure Cashfree page can also be offered on QR orders (a table's check and QR takeaway) and in the AI waiter. Turn it on in Settings → Payments, in the Cashfree card under On the guest's own phone, with Guests can pay from their phone. It is off until you switch it on.
- The guest's order page shows Pay ₹420 online (the amount still due), with "UPI apps, cards, netbanking, wallets. Or pay at the counter." under it. The AI waiter's pay card shows the same button.
- The guest pays on Cashfree's page, comes back to the order page, which says Checking your payment… and then Paid ₹420.
- The check shows paid on every staff screen. A dine-in check closes once its food is served, as it does for any payment. A check paid before its food is served stays open, paid.
- I've paid · Verify payment and the plain UPI link stay available under Having trouble? Pay another way. With the setting off, the page is as before.
If the bill grows after the guest paid (a new round), the button shows what is left. A guest whose payment didn't go through sees Payment didn't go through and can try again. Money that arrives twice or too late appears under Payments → Needs review, as for any online payment.
Payments → Needs review
Sometimes the money arrives but AirQR cannot simply add it to a bill without a person looking. AirQR never refunds this money by itself. It appears in Payments → Needs review, with a count on the tab. People who can verify payments at that outlet get a Payment needs review notification. Each item shows the kind, Cashfree, the amount, the payment id and the order.
A guest can still pay a QR for a short while after it was cancelled or had expired. That money shows up here as Paid after the QR ended.
| Kind | What happened |
|---|---|
| Paid after the QR ended | Paid after the QR was cancelled or expired, or after the check was closed or cancelled. |
| Paid twice | Paid twice, or nothing was due any more. Often staff had already marked the same UPI payment by hand. |
| Amount differs | The amount was different from what was due. The difference is listed. |
| Paid, bill not closed | The payment was saved, but the bill could not be finished. |
| Unknown payment | Cashfree told AirQR about a payment that is not an AirQR bill of this account. |
| Couldn't add to the bill | The money was confirmed but could not be added to the bill, or AirQR could not find out whether a QR was paid. |
| Couldn't confirm a QR payment | AirQR could not confirm whether the guest paid. Check your Cashfree dashboard. |
Items about bank transfers (Bank transfer doesn't add up, Not in any bank transfer yet, Refund AirQR has no record of, Bank transfer failed) are explained in Money received. They only offer Dismiss and never move money.
Choose what you did:
- Same payment, nothing to do for Paid twice, when it is the same payment you already marked by hand. If AirQR says removing the extra hand-marked payment is not available yet, choose another action.
- Keep on this bill keeps the money on that bill.
- Reopen opens the bill again so the money counts there.
- Refunded in my Cashfree dashboard means you gave the money back from Cashfree. A window asks for a Note (when, and to whom). AirQR moves no money.
- Dismiss means nothing more to do.
Not every item offers every choice, because some need a bill. Resolved items stay under Show resolved. People who can see payments but not verify them see a line saying a cashier or manager resolves these.
Switch it off or change keys
- Replace keys on the connected card opens the keys form to paste new keys. If Cashfree stops accepting AirQR's requests, the card shows Error and opens it for you.
- Disable on the card, then confirm Disable Cashfree? No new QRs are made, but QRs already shown are still confirmed. The POS goes back to UPI (own QR, mark by hand) and the kiosk to the earlier UPI flow. To start again press Connect again and paste your keys.
One account for several outlets
To let an outlet use another outlet's Cashfree account, choose Use the account of on the card and pick the outlet. The card then says "This outlet uses the Cashfree account of (outlet)". The money goes to that one Cashfree account, and the other outlet's card shows "This account is used by (names)".
Not available yet
- Refunds from AirQR. Refund in your Cashfree dashboard, then mark it in Needs review.
- The QR on the printed bill is still your own UPI QR. A guest who pays that is verified by hand, as before.
- Card machines. Only UPI QR is automatic for now.
- The AirQR app does not show UPI QR (automatic) yet. It still takes UPI by hand.
Troubleshooting
| Symptom | Fix |
|---|---|
| No UPI QR (automatic) choice on the POS | The outlet is not connected, Cashfree is disabled or in Error, or you are using the app. Check Settings → Payments. |
| Cashfree stopped accepting AirQR's requests. Check your keys or reconnect. | The keys were changed or removed in Cashfree. Use Replace keys. |
| Cashfree refused these keys. Check the App ID and Secret Key are your production keys. | Copy the keys again from Developers → API Keys, the Production pair. |
| The last payment attempt was declined | The guest's bank refused the payment. Nothing was paid. Ask the guest to scan again or pay another way, or press New QR. |
| The bill stays unpaid after the guest paid | Press Check status. If it never updates, check the webhook with the ₹1 test, then look in Needs review. |
| Test connection asks for other keys | You mixed test and production keys. |
| Add a mobile or WhatsApp number in Settings → Outlets → Contact. | Add the number, then try again. |
For help, call or WhatsApp +91 86258 40836, or email support@airqr.in. See also Payment center, Money received, Self-order kiosk, Recording payments and closing bills, Split bills, Using the POS offline.
New to AirQR?
Try everything free for 28 days, no card needed. Already a customer? Sign in to follow these steps in your dashboard.
Still stuck? Contact support at support@airqr.in.
Related articles
- Running bar tabsOpen a tab by guest name at the bar, add rounds through the evening, move it to a table, and split it when the guest pays.
- Barcode scannerPlug in or pair a USB or Bluetooth barcode scanner and scan a product anywhere on the POS to add its dish. Test your scanner, link barcodes to dishes in one sitting, and scan with a phone camera where the browser allows it.
- Money received (what came in, how and where)One page for the money your restaurant actually received on a day or a period, by cash, UPI, card and refunds, through which provider, and by where it was paid. Tap a row to see its bills. Download it as Excel or CSV.
- How AirQR works offline and with several devicesWhat AirQR guarantees when several tablets, tills, screens and people work at once, and when a till loses the internet and catches up later. It covers numbers used once, no double bookings, payments and refunds that can't go over, the cash drawer, and what to check afterwards.