Overview
rsmcheats.shop — REST API
Two endpoints. The first creates a UPI QR that pays straight into your own Paytm account, the second verifies the payment. Every request is authenticated with your X-API-Key and X-API-Secret; responses are always JSON.
Endpoints
POST/api/v2/qr.phpUPI QR Generator
GET/POST/api/v2/verify.phpPayment Verifier
Authentication Headers
X-API-Key: rsm_gw_xxxxxxxx
X-API-Secret: rsm_sec_xxxxxxxx
Content-Type: application/json (response)
X-API-Secret: rsm_sec_xxxxxxxx
Content-Type: application/json (response)
Keep the secret server-side. Never ship
X-API-Secret in a public web page or mobile app. Get / reset your keys from your dashboard.Payment Flow
Step-by-step integration
01
QR Generate
POST /qr.php
›
02
Save order_id
From response
›
03
Show QR
qr_url → img tag
›
04
User Pays
Any UPI app
›
05
Verify
GET /verify.php
Expiry: a QR is valid for
expires_in seconds (default 300). Poll verify every 5 seconds until final is true.QR Code Generate
/api/v2/qr.php — create a UPI payment QR
POSThttps://rsmcheats.shop/api/v2/qr.php
Amount Mode
Fixed Amount
No Amount (Open)
Fixed Amount QR: send
amount — it is pre-filled and the payer cannot change it. Best for shops and fixed-price orders.amount=99.50&purpose=Order #12No Amount (Open) QR: omit
amount (or send 0). The payer types the amount. For donations / tips always read the real amount from the verify response.Request Parameters (form-data or x-www-form-urlencoded)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| amount | number | Optional | 0 = open | Positive = fixed QR, 0 / missing = open QR. Max 2 decimals. |
| name | string | Optional | Your store name | Merchant name shown in the payer's UPI app (40 chars). |
| purpose | string | Optional | Payment | Payment note (50 chars). |
| customer_name | string | Optional | — | Shown on the payment page (80 chars). |
| customer_message | string | Optional | — | Optional message for the payer (200 chars). |
The UPI ID and Paytm merchant details come from the Gateway settings in your dashboard — you do not send them in the request.
Success
Error
{
"success": true,
"order_id": "ORD_1773214714_3144",
"gateway": "paytm",
"mode": "fixed",
"qr_url": "/qr/ORD_1773214714_3144.png",
"payment_link": "https://rsmcheats.shop/pay.php?id=ORD_1773214714_3144",
"upi_string": "upi://pay?pa=you@paytm&pn=My%20Store&am=99.00&cu=INR&tn=Order%20%2312&tr=ORD_1773214714_3144",
"amount": 99,
"payable_amount": 99,
"purpose": "Order #12",
"merchant": "My Store",
"expiry": 1773218314,
"expires_in": 300
}Verify Payment
/api/v2/verify.php — confirm a transaction
GEThttps://rsmcheats.shop/api/v2/verify.php ? order_id = ORD_1773214714_3144
Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| order_id | string | Required | — | The order_id returned by qr.php (orderid also works). |
Status Values
TXN_SUCCESS
Paid & verified
PENDING
Not paid yet — keep polling
TXN_FAILURE
Payment failed
AMOUNT_MISMATCH
Paid amount ≠ QR amount
EXPIRED
Verification window closed
Call verify from your server. Poll every 5–10 seconds; calls faster than once per 3 seconds return a cached
PENDING. TXN_SUCCESS
PENDING
{
"success": true,
"status": "TXN_SUCCESS",
"order_id": "ORD_1773214714_3144",
"mode": "fixed",
"amount": "99.00",
"utr": "612345678901",
"paytm_reference": "20261120111212800110168...",
"bank_reference": "612345678901",
"timestamp": "2026-11-20 14:32:10",
"message": "Payment verified successfully",
"final": true
}Live API Tester
Runs against this server with your own key
Your key and secret are sent only to
rsmcheats.shop and are never stored by this page. QR Generate
Verify Payment
After generating a QR click Auto-fill to copy the order_id here.
Error Codes
Common errors and their solutions
success: true
Request successful
401 Missing / Invalid API key or secret
Check both headers
403 Gateway disabled / Account suspended
Enable the gateway in your dashboard
400 Invalid amount / Missing order_id
Fix the request parameters
400 Paytm not configured
Save Merchant ID, Merchant Key and UPI ID first
404 Order not found
Wrong order_id
403 Not your order
Order belongs to another key
429 Too many QR requests
Wait a minute and retry
502 QR failed
Temporary — retry in a few seconds
PENDING
Payment processing — poll again
TXN_FAILURE / EXPIRED
Create a new QR
Code Examples
cURL · PHP · Python · Node.js
cURL
PHP
Python
Node.js
curl -X POST "https://rsmcheats.shop/api/v2/qr.php" \ -H "X-API-Key: rsm_gw_xxxxxxxx" \ -H "X-API-Secret: rsm_sec_xxxxxxxx" \ -d "amount=99" -d "purpose=Order #12" -d "name=My Store" curl "https://rsmcheats.shop/api/v2/verify.php?order_id=ORD_1773214714_3144" \ -H "X-API-Key: rsm_gw_xxxxxxxx" \ -H "X-API-Secret: rsm_sec_xxxxxxxx"
<?php
$h = ['X-API-Key: rsm_gw_xxxxxxxx', 'X-API-Secret: rsm_sec_xxxxxxxx'];
$ch = curl_init('https://rsmcheats.shop/api/v2/qr.php');
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => $h,
CURLOPT_POSTFIELDS => http_build_query(['amount' => 99, 'purpose' => 'Order #12'])]);
$qr = json_decode(curl_exec($ch), true); // $qr['qr_url'], $qr['order_id']
// later, from your SERVER (never from the browser):
$ch = curl_init('https://rsmcheats.shop/api/v2/verify.php?order_id=' . urlencode($qr['order_id']));
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => $h]);
$v = json_decode(curl_exec($ch), true);
if (($v['status'] ?? '') === 'TXN_SUCCESS') { /* credit the order, amount in $v['amount'] */ }import requests, time
BASE = "https://rsmcheats.shop/api/v2"
H = {"X-API-Key": "rsm_gw_xxxxxxxx", "X-API-Secret": "rsm_sec_xxxxxxxx"}
qr = requests.post(BASE + "/qr.php", headers=H, data={"amount": 99, "purpose": "Order #12"}).json()
print(qr["qr_url"], qr["order_id"])
for _ in range(60): # poll every 5 seconds
v = requests.get(BASE + "/verify.php", headers=H, params={"order_id": qr["order_id"]}).json()
if v.get("final"): break
time.sleep(5)
print(v["status"], v.get("amount"))const BASE = "https://rsmcheats.shop/api/v2";
const H = { "X-API-Key": "rsm_gw_xxxxxxxx", "X-API-Secret": "rsm_sec_xxxxxxxx" };
const qr = await fetch(BASE + "/qr.php", {
method: "POST", headers: H,
body: new URLSearchParams({ amount: "99", purpose: "Order #12" })
}).then(r => r.json());
// Verify from your backend so the secret never reaches the browser
const v = await fetch(`${BASE}/verify.php?order_id=${qr.order_id}`, { headers: H }).then(r => r.json());
if (v.status === "TXN_SUCCESS") console.log("Paid ₹" + v.amount);