MG Grow Pay
Multi-Channel Cashier Engine
VERSION 3.0 MULTI-CHANNEL
Portal
⚡ New Multi-Bank Update 1. Link Generator 2. Channels (Bank/JZ/EP) 3. Cashier Workflow 4. Redirect Parameters 5. Platform PHP Code 6. Callback Webhook (POST) 7. Complete backend.php 8. Return Page (return.php) 9. Fees & Limits 10. Withdrawal / Payout API
NEW MULTI-BANK & QR UPDATE • VERSION 3.0 ACTIVE

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:

Generated Checkout URL:
Open Live Cashier in New Tab
2. Supported Channels & Methods
All 3 Channels

Our endpoint qrpayment.php supports three distinct channels via the channel parameter:

Channel ParameterMethod NameFee (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:

ParameterTypeRequiredExampleDescription
channelStringRequiredbank / jz / epbank = All Pakistan Commercial Banks & Raast, jz = JazzCash, ep = EasyPaisa
mch_idStringRequiredYOURYour registered Merchant ID in MG Grow Pay
amountNumberRequired1000Deposit amount in Pakistani Rupees (Min: 100, Max: 100,000)
order_idStringRequiredORD2026101101Unique order reference serial generated by your platform
mobile_numberStringOptional03001234567Pre-fills customer phone input box automatically
notify_urlStringRequiredhttps://.../backend.phpYour server-side webhook URL to receive payment confirmation
return_urlStringOptionalhttps://.../return.phpDestination 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:

PHP (deposit_handler.php)
<?php /** * PLATFORM DEPOSIT HANDLER SCRIPT * File: deposit_handler.php */ // 1. Merchant Details $mch_id = 'YOUR'; // 2. Chosen Channel ('bank' = All Pakistani Banks & Raast, 'jz' = JazzCash, 'ep' = EasyPaisa) $channel = $_POST['channel'] ?? 'bank'; // 3. User & Order Details $deposit_amt = (float)($_POST['amount'] ?? 1000); $order_id = 'ORD_' . date('ymdHis') . '_' . rand(100, 999); $user_phone = preg_replace('/[^0-9]/', '', $_POST['phone'] ?? '03001234567'); // 4. Webhook & Return URLs $notify_url = 'https://yourwebsite.com/backend.php'; $return_url = 'https://yourwebsite.com/return.php'; // 5. Gateway Endpoint $gateway_endpoint = 'https://mggrow.sbs/qrpayment.php'; // 6. Build Checkout Query Parameters $params = [ 'channel' => $channel, 'mch_id' => $mch_id, 'amount' => $deposit_amt, 'order_id' => $order_id, 'mobile_number' => $user_phone, 'notify_url' => $notify_url, 'return_url' => $return_url ]; $checkout_url = $gateway_endpoint . '?' . http_build_query($params); // 7. Redirect Customer (Browser URL bar will automatically clean and mask) header("Location: " . $checkout_url); exit; ?>
6. Webhook Callback Specification (POST)
POST notify_url

When payment is verified, MG Grow Pay sends an HTTP POST request with Content-Type: application/x-www-form-urlencoded to your notify_url:

ParameterTypeExampleDescription
mchIdStringYOURYour registered Merchant ID
out_trade_noStringORD2026101101Your original order serial provided during redirect
statusString11 = Payment Completed & Verified
pay_moneyString1000.00Actual cash amount transferred by the user
channelStringBANK / JZ / EPPayment route used by the customer
tokenStringMGGROW-PAY-TKN-8F293B...Cryptographic MG Grow Pay verification token
signStringa8f5c3e4...Cryptographic MD5 signature for authenticity

MD5 Signature Verification Formula:

sign = strtolower(md5("channel=BANK&mchId=YOUR_MCH_ID&out_trade_no=ORD123&pay_money=1000.00&status=1&token=MGGROW-PAY-TKN-XXX&key=YOUR_API_KEY"))
7. Complete Production Webhook (backend.php)
Production Webhook

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:

https://yourwebsite.com/return.php?order_id=ORD2026101101&mch_id=YOUR&amount=1000&status=completed&channel=BANK&token=MGGROW-PAY-TKN-8F293B4...

Save this script as return.php on your platform to display the user's receipt and security token:

PHP (return.php)
<?php /** * CUSTOMER RETURN RECEIPT SCRIPT * File: return.php */ $order_id = htmlspecialchars($_GET['order_id'] ?? ''); $amount = (float)($_GET['amount'] ?? 0); $status = htmlspecialchars($_GET['status'] ?? ''); $channel = htmlspecialchars($_GET['channel'] ?? 'BANK'); $token = htmlspecialchars($_GET['token'] ?? ''); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Deposit Receipt - MG Grow Pay</title> <style> body { font-family: sans-serif; background: #f8fafc; text-align: center; padding: 40px 16px; margin: 0; } .card { max-width: 480px; margin: 0 auto; background: #ffffff; padding: 32px 24px; border-radius: 22px; box-shadow: 0 10px 32px rgba(0,0,0,0.06); } .token-box { background: #ecfdf5; color: #047857; padding: 10px 14px; border-radius: 10px; font-family: monospace; font-weight: bold; border: 1px solid #a7f3d0; word-break: break-all; margin: 10px 0; } .btn { display: inline-block; background: #002244; color: #ffffff; padding: 13px 28px; border-radius: 12px; text-decoration: none; font-weight: bold; margin-top: 18px; } </style> </head> <body> <div class="card"> <div style="width:64px; height:64px; border-radius:50%; background:#ecfdf5; color:#10b981; display:flex; align-items:center; justify-content:center; font-size:32px; margin:0 auto 14px auto;">✓</div> <h2 style="color:#0f172a; margin:0 0 8px 0;">Payment Verified!</h2> <p style="color:#64748b; font-size:13px; margin:0 0 20px 0;">Your deposit has been credited into your game wallet.</p> <div style="text-align:left; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:14px; font-size:13px;"> <div style="display:flex; justify-content:space-between; padding:4px 0;"> <span style="color:#64748b;">Order ID:</span> <strong><?php echo $order_id; ?></strong> </div> <div style="display:flex; justify-content:space-between; padding:4px 0;"> <span style="color:#64748b;">Channel:</span> <strong><?php echo $channel; ?></strong> </div> <div style="display:flex; justify-content:space-between; padding:4px 0;"> <span style="color:#64748b;">Amount Credited:</span> <strong style="color:#10b981;">Rs. <?php echo number_format($amount, 2); ?></strong> </div> </div> <div style="margin-top:20px;"> <span style="font-size:11px; text-transform:uppercase; color:#64748b; font-weight:bold;">Security Verification Token:</span> <div class="token-box"><?php echo $token; ?></div> </div> <a href="home.php" class="btn">Back to Platform / Game</a> </div> </body> </html>
9. Operating Limits & Internal Fee Matrix
Internal Pricing
ChannelCodeFee RateMin LimitMax LimitCustomer Interface View
All Pakistan Banks & Raast QR bank 2.50% ₨ 100 ₨ 100,000 Zero Tax Displayed (Exact Amount Only)
JazzCash QR Cashier jz 3.00% ₨ 100 ₨ 50,000 Zero Tax Displayed (Exact Amount Only)
EasyPaisa QR Cashier ep 4.00% ₨ 100 ₨ 50,000 Zero Tax Displayed (Exact Amount Only)

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.

Endpoint URL: https://mggrow.sbs/withdraw.php
Method: POST
Content-Type: application/x-www-form-urlencoded

ParameterTypeRequiredExampleDescription
mchIdStringRequiredYOURYour registered 4-Digit Merchant ID
out_trade_noStringRequiredWD26112214220701Unique payout order reference from your website
moneyNumberRequired5000Gross amount to withdraw in local currency (PKR/INR)
pay_typeStringRequiredEP / JZ / BANK / USDTChannel: EP (Easypaisa), JZ (Jazzcash), BANK (1Link/IMPS), USDT
accountStringRequired03001234567 / PK00MEZN...Beneficiary wallet number, bank IBAN, or USDT TRC20 address
userNameStringRequiredMuhammad AliBeneficiary full account holder name
bankCodeStringOptionalMeezan Bank / EPRequired for BANK channel (e.g. Meezan, HBL, UBL, IFSC)
crypto_networkStringOptionalTRC20 / BEP20Used when pay_type=USDT (Default: TRC20)
notify_urlStringRequiredhttps://yourdomain.com/callback_payout.phpWebhook URL to receive live completion or failure reports
signStringRequired7b6c5a4d...Cryptographic MD5 signature string

MD5 Signature Formula for Payout:

sign = strtolower(md5("account=03001234567&mchId=YOUR&money=5000¬ify_url=https://...&out_trade_no=WD123&pay_type=EP&userName=Muhammad Ali&key=YOUR_API_KEY"))
PHP Complete Server Payout Request (disburse_payout.php)
<?php /** * OFFICIAL MG GROW PAY DISBURSEMENT CLIENT SCRIPT (NO OTP NEEDED) * File: disburse_payout.php */ $mch_id = 'YOUR'; $api_key = 'YOUR'; $endpoint = 'https://mggrow.sbs/withdraw.php'; // 1. Prepare Withdrawal Payload (No OTP field required!) $post_data = [ 'mchId' => $mch_id, 'out_trade_no' => 'WD_' . date('ymdHis') . '_' . rand(100, 999), 'money' => 5000.00, 'pay_type' => 'EP', // Options: 'EP', 'JZ', 'BANK', 'USDT' 'userName' => 'Muhammad Ali', 'account' => '03001234567', 'bankCode' => 'EP', 'notify_url' => 'https://yourwebsite.com/callback_payout.php' ]; // 2. Generate Cryptographic MD5 Signature ksort($post_data); $signPairs = []; foreach ($post_data as $k => $v) { if ($v !== "" && $v !== null) { $signPairs[] = $k . "=" . $v; } } $post_data['sign'] = strtolower(md5(implode("&", $signPairs) . "&key=" . $api_key)); // 3. Dispatch HTTP POST to /withdraw.php $ch = curl_init($endpoint); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); curl_close($ch); $res = json_decode($response, true); if ($res && isset($res['code']) && $res['code'] === 0) { // SUCCESS: Balance debited, payout order dispatched! echo "SUCCESS: Order queued! Payout ID: " . $res['payout_id'] . " | Net: " . $res['net_amount']; } else { // ERROR: Insufficient balance or invalid credentials echo "FAILED: " . ($res['msg'] ?? 'Unknown Gateway Error'); } ?>

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:

CodeStatus / MeaningTrigger ReasonAction 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. Top up merchant ledger or lower payout amount.
Active Engine • MG-MULTI-QR-13A45A0D • mggrow.sbs

© 2026 MG Grow Pay Multi-Currency Network