
Accept UPI payments from your website, bot or app. Generate payment links, dynamic QR codes, and verify transactions in real time.
RSM Gateway is a REST API with 4 endpoints. All responses are JSON. Both GET and POST are supported.
https://rsmcheats.shop/gw
/qr.phpGenerate UPI QR + payment link/verify.phpVerify transaction status/status.phpGet order details/orders.phpList all your ordersEvery request must include your API key and secret in headers.
# Headers required
X-API-Key: rsm_gw_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p
X-API-Secret: rsm_sec_x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m
TXN_SUCCESS or EXPIRED.Generate a UPI QR with your own Paytm account. Works through your API key + secret: send an amount for a fixed QR (the payer cannot change it), or leave it out / send 0 for an open QR (the payer types the amount; read the real amount from verify.php). Your Merchant ID, Merchant Key and UPI ID must be saved in Gateway Settings first.
/api/v2/qr.php| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | No | INR, up to 2 decimals (e.g. 99.50). Missing or 0 = open QR. |
name | string | No | Merchant name shown in the UPI app (max 40). Default: your store name |
purpose | string | No | Payment note shown to the user (max 50) |
customer_name | string | No | Customer name (for reference) |
customer_message | string | No | Optional note |
{
"success": true,
"order_id": "ORD_1773214714_a1b2c3d4",
"gateway": "paytm",
"qr_url": "https://api.qrserver.com/v1/create-qr-code/?...",
"payment_link": "https://rsmcheats.shop/pay.php?id=ORD_...",
"amount": 100.00,
"payable_amount": 100.00,
"expiry": 1773218314,
"expires_in": 300
}
curl -X POST https://rsmcheats.shop/api/v2/qr.php \ -H "X-API-Key: rsm_gw_xxxxx" \ -H "X-API-Secret: rsm_sec_xxxxx" \ -d "amount=100&purpose=Game+Topup&gateway=paytm"
Check the transaction status of a previously created order. You only send your API key + secret (both required, GET or POST). Your Paytm Merchant Key stays on our server. Poll every 5–10 seconds; calls closer than 3 seconds to the previous check return PENDING without hitting the gateway.
/api/v2/verify.php| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | string | Yes | Order ID from /qr.php (orderid also accepted) |
{
"success": true,
"status": "TXN_SUCCESS",
"order_id": "ORD_1773214714_a1b2c3d4",
"amount": "100.00",
"utr": "210766238795",
"paytm_reference": "2026031111106000023...",
"timestamp": "2026-10-11 12:57:50"
}
{
"success": false,
"status": "PENDING",
"message": "Payment not received yet"
}
// Poll every 5 seconds while (true) { sleep(5); $v = verify('ORD_xxx'); if ($v['status'] === 'TXN_SUCCESS') { // Deliver goods break; } if ($v['status'] === 'EXPIRED') { // Payment failed break; } }
| Status | Success | Meaning |
|---|---|---|
TXN_SUCCESS | true | Payment confirmed. Deliver goods. |
PENDING | false | Still processing. Retry in 5-10s. |
EXPIRED | false | QR expired. Create new order. |
TXN_FAILURE | false | Payment failed. Ask user to retry. |
AMOUNT_MISMATCH | false | Fixed QR was paid with less than the order amount (amount = paid, expected_amount = order). Do not deliver. |
DUPLICATE_REFERENCE | false | This bank/Paytm reference already settled another order. Do not deliver. |
| HTTP | Error | Solution |
|---|---|---|
401 | Missing API key | Add X-API-Key header |
401 | Invalid API secret | Check X-API-Secret header |
403 | Gateway disabled | Contact admin or check dashboard |
400 | Invalid amount | Use a number with up to 2 decimals (or omit it for an open QR) |
400 | Paytm not configured | Save Merchant ID, Merchant Key and UPI ID in Gateway Settings |
429 | Too many QR requests | Max 30 QR per minute per key. Wait a minute |
404 | Order not found | Check order_id |
502 | Gateway error | Retry after some time |
| Endpoint | Limit |
|---|---|
/qr.php | 30 requests / minute per key |
/verify.php | 1 gateway check per order every 3 seconds (poll every 5–10s) |
/status.php | 300 requests / minute |
/orders.php | 60 requests / minute |