Dual QR Cashier + All 19+ Commercial Pakistan Banks & Raast QR
Our single unified cashier endpoint /qrpayment.php now handles JazzCash (JZ), EasyPaisa (EP), and All Pakistani Commercial Banks & Raast QR (BANK) with automated URL masking, cryptographic token issuance, and pure QR scan-and-pay workflow.
1. All Pakistan Banks & Raast QR (2.5% Fee)
New channel code channel=bank allows customers to pay with any Pakistani bank (Meezan, HBL, Alfalah, SadaPay, etc.) via QR scan. No IBAN or manual account typing required!
2. Instant URL Bar Address Masking
Customer browser address bar auto-cleans instantly upon loading to qrpayment.php?mch_id=YOUR_MCH_ID. All backend callback links, keys, and private parameters remain 100% invisible.
3. Cryptographic MG Grow Token
Every confirmed payment generates a unique proof token: MGGROW-PAY-TKN-XXXXXXXXXXXXXXXX. It is dispatched to your server webhook and attached to the customer's return URL.
4. 15-Second Auto-Return Countdown
Upon verification, the cashier shows a success screen, sounds a confirmation alert, and auto-returns to your platform in 15 seconds with the verified token attached.
Live Cashier Link Builder & Tester
LIVE CASHIER GENERATOR
Generate the exact customer checkout URL for your website or test the live deposit cashier with All Banks, JazzCash, or EasyPaisa:
Our endpoint qrpayment.php supports three distinct channels via the channel parameter:
Channel Parameter
Method Name
Fee (Tax)
Payment Experience
channel=bank
All Pakistan Banks & Raast QR
2.50%
Customer selects their bank (HBL, Meezan, Alfalah, SadaPay, etc.) and scans the dynamic QR code inside their banking app. No manual IBAN typing!
channel=jz
JazzCash QR Cashier
3.00%
Customer opens the JazzCash app, scans the laser animated QR, and approves payment directly.
channel=ep
EasyPaisa QR Cashier
4.00%
Customer opens the EasyPaisa app, scans the laser animated QR, and approves payment directly.
Supported Pakistani Banking Apps for channel=bank:
Meezan Bank
HBL Mobile
Bank Alfalah (Alfa)
UBL Digital
MCB Live
Allied Bank (myABL)
Bank AL Habib
Faysal Bank (DigiMall)
Askari Digital
Bank of Punjab (digiBOP)
JS Bank (Zindigi)
Soneri Bank
Standard Chartered (SC Mobile)
Dubai Islamic Bank
BankIslami
National Bank of Pakistan (NBP)
SadaPay
NayaPay
State Bank Raast QR
3. Cashier Architecture & Lifecycle
End-to-End Workflow
1
Redirect with Parameters
Your website redirects customer to qrpayment.php. URL bar auto-masks instantly to hide secret parameters.
2
Customer Scans QR Code
Customer scans the dynamic QR with any bank or wallet app (Meezan, HBL, JazzCash, EasyPaisa, SadaPay, etc.). Pure QR payment!
3
Auto Credit & Token Issuance
Upon payment approval, the system generates a cryptographic token, credits merchant wallet balance, and dispatches alerts.
4
15s Return & Webhook Dispatch
Signed MD5 webhook hits your backend.php and the browser auto-redirects to return_url with the verified token!
اردو وضاحت: صارف جب آپ کی ویب سائٹ پر ڈپازٹ بٹن دبائے گا تو آپ کا سسٹم صارف کو qrpayment.php پر بھیجے گا۔ صارف اپنے موبائل کی کسی بھی بینکنگ ایپ (میزان، ایچ بی ایل، جاز کیش، ایزی پیسہ، سادہ پے، وغیرہ) کے اسکینر سے یہ کوڈ اسکین کر کے ادائیگی کرے گا۔ نہ کسی IBAN کی ضرورت ہے اور نہ ہی اکاؤنٹ نمبر ٹائپ کرنے کی! جیسے ہی رقم ادا ہوگی، 10 سے 15 سیکنڈ میں آپ کے مرچنٹ اکاؤنٹ میں بیلنس شامل ہو جائے گا، آپ کے بیک اینڈ پر نوٹیفکیشن چلا جائے گا اور صارف کو ٹوکن کے ساتھ واپس آپ کی سائٹ پر بھیج دیا جائے گا۔
4. Checkout URL Query Parameters
GET qrpayment.php
Construct a GET redirect link from your platform with these parameters:
Parameter
Type
Required
Example
Description
channel
String
Required
bank / jz / ep
bank = All Pakistan Commercial Banks & Raast, jz = JazzCash, ep = EasyPaisa
mch_id
String
Required
YOUR
Your registered Merchant ID in MG Grow Pay
amount
Number
Required
1000
Deposit amount in Pakistani Rupees (Min: 100, Max: 100,000)
order_id
String
Required
ORD2026101101
Unique order reference serial generated by your platform
mobile_number
String
Optional
03001234567
Pre-fills customer phone input box automatically
notify_url
String
Required
https://.../backend.php
Your server-side webhook URL to receive payment confirmation
return_url
String
Optional
https://.../return.php
Destination URL where customer auto-returns after 15s with token
5. Platform PHP Integration Example
Merchant Website Code
Place this code in your website deposit script (e.g., deposit_handler.php) when a player submits a deposit request:
Save this script as backend.php on your server. It validates the cryptographic MD5 signature, handles the token, credits the customer's wallet, and responds with success:
PHP (backend.php)
<?php
/**
* OFFICIAL MG GROW PAY WEBHOOK RECEIVER
* File: backend.php
* Handles Bank QR, JazzCash & EasyPaisa Callbacks
*/
error_reporting(0);
ini_set('display_errors', 0);
// 1. Private API Secret Key (From Merchant Portal)
$secret_key = 'YOUR';
// 2. Read Incoming POST Data
$params = $_POST;
$incoming_sign = trim($params['sign'] ?? '');
if (empty($incoming_sign) || empty($params['out_trade_no'])) {
exit('fail: missing parameters');
}
// 3. Re-calculate Cryptographic MD5 Signature
unset($params['sign']);
ksort($params);
$signPairs = [];
foreach ($params as $k => $v) {
if ($v !== "" && $v !== null) {
$signPairs[] = $k . "=" . $v;
}
}
$signString = implode("&", $signPairs) . "&key=" . $secret_key;
$calculated_sign = strtolower(md5($signString));
// 4. Verify Cryptographic Authenticity
if (strcasecmp($incoming_sign, $calculated_sign) !== 0) {
// Signature Mismatch - Fake request rejected!
exit('sign error');
}
// 5. Extract Validated Order Details
$status = trim($params['status'] ?? '');
$order_id = trim($params['out_trade_no'] ?? '');
$paid_amount = (float)($params['pay_money'] ?? 0);
$channel = strtoupper(trim($params['channel'] ?? 'BANK'));
$token = trim($params['token'] ?? '');
$mch_id = trim($params['mchId'] ?? '');
if ($status === '1') {
/**
* DATABASE SETTLEMENT LOGIC:
*
* 1. Check if order exists and is pending:
* $stmt = $pdo->prepare("SELECT * FROM deposits WHERE order_id = ? AND status = 'pending' LIMIT 1");
* $stmt->execute([$order_id]);
* $order = $stmt->fetch();
*
* 2. If order already completed, output success and exit (prevent double credit):
* if (!$order) { echo "success"; exit; }
*
* 3. Update order as completed with token:
* $pdo->prepare("UPDATE deposits SET status = 'completed', token = ?, channel = ? WHERE order_id = ?")
* ->execute([$token, $channel, $order_id]);
*
* 4. Add funds to player's game balance:
* $pdo->prepare("UPDATE users SET balance = balance + ? WHERE user_id = ?")
* ->execute([$paid_amount, $order['user_id']]);
*/
// REQUIRED RESPONSE: Output plain text 'success'
echo "success";
exit;
} else {
echo "fail";
exit;
}
?>
8. Return URL Landing Page (return.php)
Browser Landing
When the 15-second countdown finishes or the user taps "Return Now", the cashier redirects the browser to your return_url with query parameters attached:
Notice: Customers never see any tax or deductions on the cashier screen. When Rs. 1,000 is requested, customer pays exactly Rs. 1,000, and Net Amount (Rs. 975 for Bank QR / Rs. 970 for JazzCash / Rs. 960 for EasyPaisa) is credited directly to your merchant vault.
10. Automated Server-to-Server Withdrawal / Payout API
POST /withdraw.php
IMPORTANT: ZERO OTP / NO 2FA FOR API DISBURSEMENTS
When your platform or game server submits a programmatic withdrawal request via API, no OTP, Google Authenticator 2FA, or Security PIN is required!
API security is 100% authenticated through cryptographic MD5 sign generated using your private api_key. Your server directly sends an HTTP POST request, and our engine instantly verifies the signature, deducts the balance, and executes the transfer!
Real-time Balance Cut & Deduction Rules:
1. Sufficient Ledger Balance Check: Before processing any disbursement, the system verifies that your active merchant vault balance is greater than or equal to the requested money amount.
2. Insufficient Balance: If your merchant balance is insufficient, the request is immediately declined with the following JSON response: {"code": 1007, "msg": "Insufficient merchant balance. Available: ..."}.
3. Immediate Debit: If the balance is sufficient and the signature is valid, the full requested gross amount is debited (cut) instantly from your merchant balance ledger and the payout transfer is queued for execution.
Payout Status Webhook Receiver (callback_payout.php):
When a payout completes successfully or declines at the banking network, MG Grow Pay posts the status update to your notify_url:
PHP Payout Webhook (callback_payout.php)
<?php
/**
* OFFICIAL MG GROW PAYOUT WEBHOOK RECEIVER
* File: callback_payout.php
*/
$secret_key = 'YOUR';
$params = $_POST;
$incoming_sign = strtolower(trim($params['sign'] ?? ''));
if (empty($incoming_sign) || empty($params['out_trade_no'])) {
exit('fail');
}
// 1. Verify Cryptographic Signature
unset($params['sign']);
ksort($params);
$signPairs = [];
foreach ($params as $k => $v) {
if ($v !== "" && $v !== null) {
$signPairs[] = $k . "=" . $v;
}
}
$calculated_sign = strtolower(md5(implode("&", $signPairs) . "&key=" . $secret_key));
if (strcasecmp($incoming_sign, $calculated_sign) !== 0) {
exit('sign error');
}
// 2. Check Payout Status
$order_sn = $params['out_trade_no'];
$status = (string)$params['status']; // '1' = Completed, '2' = Failed / Refunded
if ($status === '1') {
// Payout successful and delivered to beneficiary
// $db->query("UPDATE withdrawals SET status = 'completed' WHERE order_sn = '$order_sn'");
echo "success";
exit;
} elseif ($status === '2') {
// Payout declined by bank (MG Grow Pay automatically refunds balance to your ledger)
// $db->query("UPDATE withdrawals SET status = 'failed' WHERE order_sn = '$order_sn'");
echo "success";
exit;
}
echo "success";
?>
Live Payout Payload & MD5 Signer
AUTOMATED TEST GENERATOR
Test generating valid payout payloads and MD5 signatures for your website integration:
Generated MD5 Signature:cURL Command Ready to Test:
Status & Error Dictionary:
Code
Status / Meaning
Trigger Reason
Action Required
0
Success
Request verified, balance debited, payout queued.
Record order SN and await final callback confirmation.
1001
Merchant Not Found
Provided mchId is incorrect or suspended.
Verify 4-digit ID in Admin Gateway.
1002
Signature Mismatch
MD5 sign generated does not match calculated hash.
Ensure parameters are alphabetized before hashing.
1006
Duplicate Order SN
out_trade_no has already been submitted previously.
Generate a new unique order serial number.
1007
Insufficient Balance
Requested money exceeds current merchant vault balance.