Accept UPI.
Get it verified
in seconds.
Show a QR, your customer pays with any UPI app, and your app gets PAID with just the order ID. No UTR. No screenshots. No checking by hand.
No UPI account? No problem.
Get paid into your Gram Wallet with the same API, then withdraw to your own bank or UPI.
Built to stop fraud.
- One payment, one order — the same payment never confirms twice.
- Selfie video KYC for wallets, with a random code.
- Withdrawal PIN on every payout.
- Straight to your account — normal payments go to your own UPI, not through us.
Pay ₹1 and watch it verify.
A real checkout opens with your QR and PhonePe / Paytm buttons. Pay ₹1 from any UPI app — it confirms by itself and brings you back here.
The ₹1 is a real payment and is not refunded.
Customers just pay. The order ID is all you need to confirm it.
Payments are matched within seconds of hitting your account.
One payment can confirm only one order — never twice.
FamPay, Paytm, BharatPe, Kotak, Slice and HDFC.
autoqr.php to create, autoverify.php to confirm. That is it.
Payments go straight to your own UPI account. No middleman.
Pricing
No fee on payments. Pick the limits you need.
Do you take a cut of my payments?
No. Customers pay straight into your own UPI account. Plans only change your limits and features.
What counts as an API request?
Each new QR from autoqr.php is one request. Each check on autoverify.php is one request, but checking the same order again within 5 seconds, or checking an order that is already paid or expired, is free. Payment links and the checkout page do not count.
What happens when I reach my limit?
Only new QR codes pause until the 1st of next month. Orders that were already created keep verifying, so no customer gets stuck. Upgrade any time to continue right away.
What happens when my paid plan ends?
Your account moves to the Free plan. Your API keys keep working within the Free limits. Your first connected app keeps working; other apps pause until you upgrade.
If I renew or upgrade early, do I lose days?
No. Your remaining days are added to the new plan.
QR Branding
Put your own logo in the middle of every payment QR. Starter and Pro plans.

Setup Service
Can't code? Tell us where you need payments and we will set it up for you.
We connect Gram UPI
to your website or bot.
PHP sites, WordPress, Telegram bots, recharge or key-selling panels — share what you have and our team will add QR payments with auto verify.
- 1Send a request with your details
- 2We message you on Telegram or WhatsApp
- 3Your payments go live, verified automatically
Feedback
Tell us what to build next or what is not working
next update.
Every message is read by the team. Ideas that ship show up in the Changelog.
Changelog
What's new in Gram UPI
Dashboard
Overview of your UPI payment verification activity
Received amount
My Plan
Your limits, usage and upgrades
Connect Apps
Connect an app to get its API key and start receiving UPI payments
Transactions
All your verified UPI payments
Gram Wallet
No UPI? Accept payments into your Gram Wallet and withdraw to your bank or UPI.
Referral Program
Invite friends, earn money
Account
Profile, keys and security
Payment Page
Payment links for anyone, and the design of your checkout page
Create a payment link
Webhook
Get a message on your server when a payment is PAID or a QR expires
https://yoursite.com/gram-webhook.php, and turn it on.Your webhook
Full guide + code →API Documentation
Just two endpoints — autoqr.php to create a UPI QR and autoverify.php to confirm the payment with its order_id.
Quick start
Accept UPI payments with a QR code and confirm them using the order_id. No UTR from the customer is needed.
Connect an app
Open Connect Apps, connect your gateway and copy its API key.
Create a QR
Call autoqr.php with the amount. Show the QR and the exact amount to the customer.
Verify
Call the verify API with the order_id until the status is PAID or EXPIRED.
https://gateway.anujbots.in/Authentication
Send your api_key with every request, as a query parameter (GET) or form field (POST).
SUBSCRIPTION_EXPIRED with the end date.Create QR
Creates a payment QR for any connected gateway. The gateway is picked automatically from your API key.
https://gateway.anujbots.in/autoqr.php?api_key=YOUR_API_KEY&amount=50| Parameter | Type | Description |
|---|---|---|
api_key | required | Your gateway API key |
amount | required | Amount in ₹ — minimum 1, up to 2 decimals |
customer_name | optional | Customer's name, up to 80 characters. Shown in Transactions and sent in the webhook |
customer_phone | optional | Customer's mobile number |
note | optional | Your own note for this order, up to 200 characters, e.g. Plan: Pro · User 1042 |
Response
{
"status": "success",
"data": {
"order_id": "GRAM4EB00B3C",
"qr_url": "https://gateway.anujbots.in/qr_codes/GRAM4EB00B3C.png",
"upi_id": "yourname@kotak",
"gateway": "kotak",
"amount": "50.00",
"created_at_ist": "26-10-2026 11:58:11",
"expires_at_ist": "26-10-2026 12:03:11",
"valid_seconds": 300,
"payment_url": "https://gateway.anujbots.in/?pay=GRAM4EB00B3C&t=9f2c41d0a7e3b815",
"intent": {
"phonepe": "https://gateway.anujbots.in/?go=phonepe&o=GRAM4EB00B3C",
"paytm": "https://gateway.anujbots.in/?go=paytm&o=GRAM4EB00B3C"
}
},
"dev": "@ANUJxCODER"
}{
"status": "error",
"message": "amount is required",
"dev": "@ANUJxCODER"
}intent). Give the customer intent.phonepe or intent.paytm as a button on your page or bot. When they tap it on their phone, the app opens with the amount filled in. intent is not sent for Paytm connections — show the QR there.amount returned by autoqr.php, exactly as it is.expires_at_ist, create a new QR.Verify payment
One API for every connected app. Pass the order_id you got from the QR API.
https://gateway.anujbots.in/autoverify.php?api_key=YOUR_API_KEY&order_id=GRAM4EB00B3C| Parameter | Type | Description |
|---|---|---|
api_key | required | Same API key used to create the QR |
order_id | required | order_id from the QR response |
Response
{
"status": true,
"message": "Payment verified successfully",
"data": {
"order_id": "GRAM4EB00B3C",
"gateway": "kotak",
"amount": 50.00,
"status": "PAID",
"created_at": "26-10-2026 11:58:11",
"expires_at": "26-10-2026 12:03:11",
"utr": "666448484228",
"payer": "ANUJ PATEL",
"transaction_id": null,
"payment_time": "26-10-2026 11:59:02"
},
"developer": "@ANUJxCODER"
}{
"status": false,
"message": "Payment pending",
"data": {
"order_id": "GRAM4EB00B3C",
"gateway": "kotak",
"amount": 1.03,
"status": "PENDING",
"created_at": "26-10-2026 11:58:11",
"expires_at": "26-10-2026 12:03:11",
"seconds_left": 240
},
"developer": "@ANUJxCODER"
}{
"status": false,
"message": "Order expired. Payment not received within 5 minutes.",
"data": {
"order_id": "GRAM4EB00B3C",
"gateway": "kotak",
"amount": 1.03,
"status": "EXPIRED",
"created_at": "26-10-2026 11:58:11",
"expires_at": "26-10-2026 12:03:11"
},
"developer": "@ANUJxCODER"
}{
"status": false,
"message": "Subscription expired on 20-10-2026 11:30 AM. Please renew your plan to continue using the API.",
"data": {
"code": "SUBSCRIPTION_EXPIRED",
"expired_on": "20-10-2026 11:30:00",
"order_id": "GRAM4EB00B3C"
},
"developer": "@ANUJxCODER"
}Code examples
Create a QR, then check the status every 5 seconds.
# 1. Create a QR curl "https://gateway.anujbots.in/autoqr.php?api_key=YOUR_API_KEY&amount=50" # 2. Check payment status with the order_id from step 1 curl "https://gateway.anujbots.in/autoverify.php?api_key=YOUR_API_KEY&order_id=GRAM4EB00B3C"
<?php
$apiKey = 'YOUR_API_KEY';
$base = 'https://gateway.anujbots.in/';
// 1. Create a QR
$qr = json_decode(file_get_contents($base . 'autoqr.php?' . http_build_query([
'api_key' => $apiKey,
'amount' => 50,
])), true);
if (($qr['status'] ?? '') !== 'success') {
exit($qr['message'] ?? 'Could not create QR');
}
$orderId = $qr['data']['order_id'];
// Show $qr['data']['qr_url'] and $qr['data']['amount'] to your customer
// 2. Check status (repeat every 5 seconds until PAID or EXPIRED)
$res = json_decode(file_get_contents($base . 'autoverify.php?' . http_build_query([
'api_key' => $apiKey,
'order_id' => $orderId,
])), true);
$status = $res['data']['status'] ?? 'PENDING'; // PAID | PENDING | EXPIRED
if ($status === 'PAID') {
// Deliver the order
}const API_KEY = process.env.GRAM_API_KEY;
const BASE = 'https://gateway.anujbots.in/';
async function createQR(amount) {
const r = await fetch(`${BASE}autoqr.php?api_key=${API_KEY}&amount=${amount}`);
return r.json(); // { status, data: { order_id, qr_url, amount, ... } }
}
async function waitForPayment(orderId) {
while (true) {
const r = await fetch(`${BASE}autoverify.php?api_key=${API_KEY}&order_id=${orderId}`);
const j = await r.json();
const status = j.data?.status;
if (status === 'PAID' || status === 'EXPIRED') return j;
await new Promise(res => setTimeout(res, 5000));
}
}import time, requests
API_KEY = "YOUR_API_KEY"
BASE = "https://gateway.anujbots.in/"
qr = requests.get(BASE + "autoqr.php", params={"api_key": API_KEY, "amount": 50}).json()
order_id = qr["data"]["order_id"]
print("Pay", qr["data"]["amount"], "->", qr["data"]["qr_url"])
while True:
res = requests.get(BASE + "autoverify.php",
params={"api_key": API_KEY, "order_id": order_id}).json()
status = res.get("data", {}).get("status")
if status in ("PAID", "EXPIRED"):
print(status)
break
time.sleep(5)The same code works for every gateway — only the api_key changes.
Status & errors
Order status
| Status | Meaning |
|---|---|
| PAID | Payment received. Deliver the order. |
| PENDING | Not received yet. Check again after 5 seconds. |
| EXPIRED | 5 minutes passed. Create a new QR. |
Common errors
| Message | What to do |
|---|---|
api_key is required | No API key sent |
amount is required | Amount missing in Create QR |
Invalid api_key | Key is wrong or the app was disconnected |
Subscription expired on <date> | Your plan has ended. Renew it — both APIs stop working until you do |
SUBSCRIPTION_EXPIRED | Sent in data.code, with the end date in data.expired_on |
Order not found | Wrong order_id, or it belongs to another API key |
Gmail connection failed | Reconnect the app with a new App Password |
IP_NOT_ALLOWED | Your server IP is not in this key's IP whitelist. Add it on the Account page |
Best practices
- Create the QR and verify from your server, not from the customer's device.
- Check status every 5 seconds and stop on PAID or EXPIRED.
- Calling verify again after PAID is safe — it returns the same data, so you can retry freely.
- Save the
order_idwith your order so you never deliver twice. - Always display the
amountfrom the QR response, not your own value.
Try it live
Call the real API from here. Paste one of your API keys, create a QR, then check its status.
/autoqr.php// The response will show here
Gram Wallet
No UPI account that works with the gateway? Complete KYC on the Wallet page. After approval you get a Wallet API key (starts with WAL_).
- Use the Wallet API key with
autoqr.phpandautoverify.php— the requests and responses are exactly the same as for any other app. - When an order is PAID, the amount is added to your wallet.
- Each payment can be withdrawn after the holding period shown on the Wallet page.
- Withdrawals go to the bank account or UPI ID in your KYC. A small fixed fee applies per withdrawal.
- Changing payout details sends your KYC for review again. Your balance stays safe.
Webhooks
Get a message on your server the moment a payment is PAID or a QR EXPIRES. No need to keep calling autoverify.php.
Setup in 3 steps
Open the Webhook page, paste a link on your server and turn it on.
Put your signing secret in your server code to check every webhook.
Press Send test and see what we sent and what you replied.
Events
payment.successPayment verified. Deliver the order.
payment.expiredQR time ended, no payment. Cancel the order.
testSent when you press Send test.
Request we send
A POST to your URL with a JSON body and these headers:
X-Gram-EventEvent name, like payment.success
X-Gram-TimestampUnix time when we sent it
X-Gram-Signaturesha256= + HMAC-SHA256 of timestamp.body with your secret
X-Gram-DeliveryUnique ID of this delivery
{
"event": "payment.success",
"order_id": "GRAM4EB00B3C",
"status": "PAID",
"amount": 50,
"gateway": "kotak",
"created_at": "03-11-2026 12:00:11",
"expires_at": "03-11-2026 12:05:11",
"utr": "629837440196",
"transaction_id": null,
"payer": "Rahul Kumar",
"payment_time": "03-11-2026 12:01:42",
"sent_at": "03-11-2026 12:01:44"
}{
"event": "payment.expired",
"order_id": "GRAM4EB00B3C",
"status": "EXPIRED",
"amount": 50,
"gateway": "kotak",
"created_at": "03-11-2026 12:00:11",
"expires_at": "03-11-2026 12:05:11",
"sent_at": "03-11-2026 12:07:12"
}Receive it on your server
<?php
// gram-webhook.php — put this file on your server
$secret = 'whsec_your_secret_here'; // Webhook page → Signing secret
$body = file_get_contents('php://input');
$ts = $_SERVER['HTTP_X_GRAM_TIMESTAMP'] ?? '';
$sig = $_SERVER['HTTP_X_GRAM_SIGNATURE'] ?? '';
// 1. Check the signature
$expected = 'sha256=' . hash_hmac('sha256', $ts . '.' . $body, $secret);
if (!hash_equals($expected, $sig) || abs(time() - (int)$ts) > 300) {
http_response_code(401);
exit('bad signature');
}
$data = json_decode($body, true);
// 2. Handle the event (only once per order_id)
if ($data['event'] === 'payment.success') {
// mark order $data['order_id'] as paid and deliver it
} elseif ($data['event'] === 'payment.expired') {
// cancel order $data['order_id']
}
// 3. Reply 200 quickly
http_response_code(200);
echo 'ok';# Flask example
import hmac, hashlib, time
from flask import Flask, request
SECRET = b"whsec_your_secret_here"
app = Flask(__name__)
@app.post("/gram-webhook")
def gram_webhook():
body = request.get_data()
ts = request.headers.get("X-Gram-Timestamp", "")
sig = request.headers.get("X-Gram-Signature", "")
expected = "sha256=" + hmac.new(SECRET, ts.encode() + b"." + body, hashlib.sha256).hexdigest()
if not hmac.compare_digest(expected, sig) or abs(time.time() - int(ts or 0)) > 300:
return "bad signature", 401
data = request.get_json()
if data["event"] == "payment.success":
pass # mark data["order_id"] as paid and deliver it
elif data["event"] == "payment.expired":
pass # cancel data["order_id"]
return "ok", 200If your server is down
We try again, all within the 5 minutes the QR is valid:
For payment.expired we try 3 more times (10s, 30s, 1m). Every try is shown on your Webhook page.
Good to know
Never mark an order paid without it.
Send any 2xx within 8 seconds. Do slow work after.
Retries can send the same event twice. Deliver each order once.
autoverify.php works as before. Use both if you like.
Payment page
A ready checkout page with your brand. It slides up on your website (like Razorpay) — no QR screen to build yourself.
payment_urlEvery autoqr.php response has it. Open it, redirect to it, or send it on WhatsApp.
checkout.jsOpens the same page as a popup on your website. Slides up from the bottom on phones.
DesignYour name, logo, theme and support contacts. Set it on the Payment Page → Design tab.
1. Create the order on your server
<?php // your server: create the order and send the link to your page $r = json_decode(file_get_contents( 'https://gateway.anujbots.in/autoqr.php?api_key=YOUR_API_KEY&amount=499' ), true); $orderId = $r['data']['order_id']; // save it with your order $paymentUrl = $r['data']['payment_url']; // open with GramCheckout, or redirect / send it
2. Open the checkout on your website
<!-- 1. Add once on your page -->
<script src="https://gateway.anujbots.in/checkout.js"></script>
<script>
// 2. Your server calls autoqr.php and sends data.payment_url to the browser
GramCheckout.open({
payment_url: paymentUrlFromYourServer,
onSuccess: function (p) {
// p.order_id, p.amount, p.utr — show a thank-you message
// Deliver only after your server confirms (webhook or autoverify.php)
},
onExpired: function (p) { /* QR time ended */ },
onClose: function (p) { /* p.paid = true / false */ }
});
</script>What the customer sees
On phones: PhonePe, Paytm or any UPI app opens with the amount filled in.
On computers the QR is shown with a 5 minute timer.
Shows on its own after payment, then returns to your site.
onSuccess is for showing a message. Deliver the order only after your server confirms with a webhook or autoverify.php.
Just redirect the customer to payment_url. After payment they go back to the page they came from.
Payment links
Collect money without any code. Create a link on the Payment Page, share it anywhere, and see who paid.
Fixed or open amountSet a price, or let the customer type the amount (with a minimum).
Name & mobileAsk the customer for their name and mobile number before paying.
Track paymentsSee every payment with customer details. Webhooks are sent for link payments too.
Link payments in a webhook also have payment_link, customer_name and customer_phone.
<!-- Open a payment link as a popup on any page -->
<script src="https://gateway.anujbots.in/checkout.js"></script>
<button onclick="GramCheckout.open({ link: 'YOUR_LINK_CODE' })">Pay now</button>Key security
Two tools on the Account page, next to every API key.
Key leaked? Create a new one. The old key stops working right away. Pending orders keep working on the new key.
Allow only your server IPs (up to 20, ranges like 203.0.113.0/24 work). Other IPs get IP_NOT_ALLOWED.
Payment pages and payment links keep working with an IP whitelist on, because they run on our side.