<?php
	include "../../conn.php";
	include "../../functions2.php";
	
	header('Content-Type: application/json; charset=utf-8');
	header('Strict-Transport-Security: max-age=31536000');
	header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization');
	header('Access-Control-Allow-Credentials: true');
	$origin = isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : '';
	header('Access-Control-Allow-Origin: ' . $origin);
	header('vary: Origin');
	
	date_default_timezone_set('Asia/Kolkata');
	$shnunc = date("Y-m-d H:i:s");
	$res = [
		'code' => 11,
		'msg' => 'Method not allowed',
		'msgCode' => 12,
		'serviceNowTime' => $shnunc,
	];
	$shonubody = file_get_contents("php://input");
	$shonupost = json_decode($shonubody, true);
	
	if ($_SERVER['REQUEST_METHOD'] != 'GET') {
		if (isset($shonupost['language']) || isset($shonupost['payTypeId']) || isset($shonupost['payid']) || isset($shonupost['random']) || isset($shonupost['signature']) || isset($shonupost['timestamp'])) {
			$language = htmlspecialchars(mysqli_real_escape_string($conn, $shonupost['language']));
			$payTypeId = htmlspecialchars(mysqli_real_escape_string($conn, $shonupost['payTypeId']));
			$payid = htmlspecialchars(mysqli_real_escape_string($conn, $shonupost['payid']));
			$random = htmlspecialchars(mysqli_real_escape_string($conn, $shonupost['random']));
			$signature = htmlspecialchars(mysqli_real_escape_string($conn, $shonupost['signature']));
			$shonustr = '{"language":'.$language.',"payTypeId":'.$payTypeId.',"payid":'.$payid.',"random":"'.$random.'"}';
			$shonusign = strtoupper(md5($shonustr));
			if($shonusign){
				$bearer = explode(" ", $_SERVER['HTTP_AUTHORIZATION']);
				$author = $bearer[1];				
				$is_jwt_valid = is_jwt_valid($author);
				$data_auth = json_decode($is_jwt_valid, 1);
				if($data_auth['status'] === 'Success') {
					$sesquery = "SELECT akshinak
					  FROM shonu_subjects
					  WHERE akshinak = '$author'";
					$sesresult=$conn->query($sesquery);
					$sesnum = mysqli_num_rows($sesresult);
					if($sesnum == 1){
						$sites = 'https://boom92.online/';
						
						if ($payid == 2) {
                            $data["rechargetypelist"]["0"]["payTypeID"] = (int)"1023";
                            $data["rechargetypelist"]["0"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["0"]["payName"] = "YaYa-APPpay";
                            $data["rechargetypelist"]["0"]["paySysName"] = "923";
                            $data["rechargetypelist"]["0"]["miniPrice"] = (int)"100";
                            $data["rechargetypelist"]["0"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["0"]["scope"] = "100|500|1000|5000|10000|30000|50000";
                            $data["rechargetypelist"]["0"]["paySendUrl"] = $sites."/pay/jazzcash";
                            $data["rechargetypelist"]["0"]["parameters"] = '';
                            $data["rechargetypelist"]["0"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["0"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["0"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["0"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["0"]["quickConfig"] = "";
                            $data["rechargetypelist"]["0"]["quickConfigList"] = [
                                ["rechargeAmount" => 100.0, "giftAmount" => 3.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.0],
                                ["rechargeAmount" => 30000.0, "giftAmount" => 900.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                                
                            ];
                            $data["rechargetypelist"]["0"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["0"]["sort"] = 90000;
                           
                            $data["rechargetypelist"]["1"]["payTypeID"] = (int)"1124";
                            $data["rechargetypelist"]["1"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["1"]["payName"] = "Wk-APPpay";
                            $data["rechargetypelist"]["1"]["paySysName"] = "923";
                            $data["rechargetypelist"]["1"]["miniPrice"] = (int)"500";
                            $data["rechargetypelist"]["1"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["1"]["scope"] = "500|800|1000|5000|10000|50000";
                            $data["rechargetypelist"]["1"]["paySendUrl"] = $sites."/pay/jazzcash";
                            $data["rechargetypelist"]["1"]["parameters"] = '';
                            $data["rechargetypelist"]["1"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["1"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["1"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["1"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["1"]["quickConfig"] = "";
                            $data["rechargetypelist"]["1"]["quickConfigList"] = [
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 800.0, "giftAmount" => 24.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                            ];
                            $data["rechargetypelist"]["1"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["1"]["sort"] = 90000;  
                             
                            $data["rechargetypelist"]["2"]["payTypeID"] = (int)"1030";
                            $data["rechargetypelist"]["2"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["2"]["payName"] = "SF-APPpay";
                            $data["rechargetypelist"]["2"]["paySysName"] = "923";
                            $data["rechargetypelist"]["2"]["miniPrice"] = (int)"400";
                            $data["rechargetypelist"]["2"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["2"]["scope"] = "400|500|1000|1500|2000|50000";
                            $data["rechargetypelist"]["2"]["paySendUrl"] = $sites."/pay/jazzcash";
                            $data["rechargetypelist"]["2"]["parameters"] = '';
                            $data["rechargetypelist"]["2"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["2"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["2"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["2"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["2"]["quickConfig"] = "";
                            $data["rechargetypelist"]["2"]["quickConfigList"] = [
                                ["rechargeAmount" => 400.0, "giftAmount" => 12.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 1500.0, "giftAmount" => 45.00],
                                ["rechargeAmount" => 2000.0, "giftAmount" => 60.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                            ];
                            $data["rechargetypelist"]["2"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["2"]["sort"] = 90000;  
                           
                        
                           $data["rechargetypelist"]["3"]["payTypeID"] = (int)"1029";
                            $data["rechargetypelist"]["3"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["3"]["payName"] = "MAGIC-APPpay";
                            $data["rechargetypelist"]["3"]["paySysName"] = "923";
                            $data["rechargetypelist"]["3"]["miniPrice"] = (int)"100";
                            $data["rechargetypelist"]["3"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["3"]["scope"] = "100|500|1000|5000|10000|50000";
                            $data["rechargetypelist"]["3"]["paySendUrl"] = $sites."/pay/jazzcash";
                            $data["rechargetypelist"]["3"]["parameters"] = '';
                            $data["rechargetypelist"]["3"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["3"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["3"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["3"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["3"]["quickConfig"] = "";
                            $data["rechargetypelist"]["3"]["quickConfigList"] = [
                                ["rechargeAmount" => 100.0, "giftAmount" => 3.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                            ];
                            $data["rechargetypelist"]["3"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["3"]["sort"] = 90000;
                        
                            $data["rechargetypelist"]["4"]["payTypeID"] = (int)"1021";
                            $data["rechargetypelist"]["4"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["4"]["payName"] = "WANDA-APPpay";
                            $data["rechargetypelist"]["4"]["paySysName"] = "923";
                            $data["rechargetypelist"]["4"]["miniPrice"] = (int)"100";
                            $data["rechargetypelist"]["4"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["4"]["scope"] = "100|500|1000|5000|10000|50000";
                            $data["rechargetypelist"]["4"]["paySendUrl"] = $sites."/pay/jazzcash";
                            $data["rechargetypelist"]["4"]["parameters"] = '';
                            $data["rechargetypelist"]["4"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["4"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["4"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["4"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["4"]["quickConfig"] = "";
                            $data["rechargetypelist"]["4"]["quickConfigList"] = [
                                ["rechargeAmount" => 100.0, "giftAmount" => 3.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                            ];
                            $data["rechargetypelist"]["4"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["4"]["sort"] = 90000;
                        
                                         }	
                                         if ($payid == 1) {
                            $data["rechargetypelist"]["0"]["payTypeID"] = (int)"1010";
                            $data["rechargetypelist"]["0"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["0"]["payName"] = "RS-APPpay";
                            $data["rechargetypelist"]["0"]["paySysName"] = "923";
                            $data["rechargetypelist"]["0"]["miniPrice"] = (int)"100";
                            $data["rechargetypelist"]["0"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["0"]["scope"] = "100|500|1000|5000|10000|50000";
                            $data["rechargetypelist"]["0"]["paySendUrl"] = $sites."/pay/easypaisa"; 
                            $data["rechargetypelist"]["0"]["parameters"] = '';
                            $data["rechargetypelist"]["0"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["0"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["0"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["0"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["0"]["quickConfig"] = "";
                            $data["rechargetypelist"]["0"]["quickConfigList"] = [
                                ["rechargeAmount" => 100.0, "giftAmount" => 3.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                            ];
                            $data["rechargetypelist"]["0"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["0"]["sort"] = 90000;
                                           
                             $data["rechargetypelist"]["1"]["payTypeID"] = (int)"1012";
                            $data["rechargetypelist"]["1"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["1"]["payName"] = "AI-APPpay";
                            $data["rechargetypelist"]["1"]["paySysName"] = "923";
                            $data["rechargetypelist"]["1"]["miniPrice"] = (int)"100";
                            $data["rechargetypelist"]["1"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["1"]["scope"] = "100|500|1000|10000|15000|50000";
                            $data["rechargetypelist"]["1"]["paySendUrl"] = $sites."/pay/easypaisa";
                            $data["rechargetypelist"]["1"]["parameters"] = '';
                            $data["rechargetypelist"]["1"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["1"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["1"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["1"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["1"]["quickConfig"] = "";
                            $data["rechargetypelist"]["1"]["quickConfigList"] = [
                                ["rechargeAmount" => 100.0, "giftAmount" => 3.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.00],
                                ["rechargeAmount" => 15000.0, "giftAmount" => 450.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                            ];
                            $data["rechargetypelist"]["1"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["1"]["sort"] = 90000;
                          
                            $data["rechargetypelist"]["2"]["payTypeID"] = (int)"1013";
                            $data["rechargetypelist"]["2"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["2"]["payName"] = "PopPay-wepayBDT";
                            $data["rechargetypelist"]["2"]["paySysName"] = "923";
                            $data["rechargetypelist"]["2"]["miniPrice"] = (int)"100";
                            $data["rechargetypelist"]["2"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["2"]["scope"] = "100|500|1000|5000|10000|50000";
                            $data["rechargetypelist"]["2"]["paySendUrl"] = $sites."/pay/easypaisa";
                            $data["rechargetypelist"]["2"]["parameters"] = '';
                            $data["rechargetypelist"]["2"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["2"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["2"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["2"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["2"]["quickConfig"] = "";
                            $data["rechargetypelist"]["2"]["quickConfigList"] = [
                                ["rechargeAmount" => 100.0, "giftAmount" => 3.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                            ];
                            $data["rechargetypelist"]["2"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["2"]["sort"] = 90000;
                        
                            $data["rechargetypelist"]["3"]["payTypeID"] = (int)"1014";
                            $data["rechargetypelist"]["3"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["3"]["payName"] = "UPI x QR";
                            $data["rechargetypelist"]["3"]["paySysName"] = "923";
                            $data["rechargetypelist"]["3"]["miniPrice"] = (int)"100";
                            $data["rechargetypelist"]["3"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["3"]["scope"] = "100|500|1000|5000|10000|50000";
                            $data["rechargetypelist"]["3"]["paySendUrl"] = $sites."/pay/easypaisa";
                            $data["rechargetypelist"]["3"]["parameters"] = '';
                            $data["rechargetypelist"]["3"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["3"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["3"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["3"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["3"]["quickConfig"] = "";
                            $data["rechargetypelist"]["3"]["quickConfigList"] = [
                                ["rechargeAmount" => 100.0, "giftAmount" => 3.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                            ];
                            $data["rechargetypelist"]["3"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["3"]["sort"] = 90000;
                            
                            $data["rechargetypelist"]["4"]["payTypeID"] = (int)"1015";
                            $data["rechargetypelist"]["4"]["payID"] = (int)"2";
                            $data["rechargetypelist"]["4"]["payName"] = "SunPay";
                            $data["rechargetypelist"]["4"]["paySysName"] = "923";
                            $data["rechargetypelist"]["4"]["miniPrice"] = (int)"100";
                            $data["rechargetypelist"]["4"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["4"]["scope"] = "100|500|1000|5000|10000|50000";
                            $data["rechargetypelist"]["4"]["paySendUrl"] = $sites."/pay/easypaisa";
                            $data["rechargetypelist"]["4"]["parameters"] = '';
                            $data["rechargetypelist"]["4"]["startTime"] = "00:00";
                            $data["rechargetypelist"]["4"]["endTime"] = "24:00";
                            $data["rechargetypelist"]["4"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["4"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["4"]["quickConfig"] = "";
                            $data["rechargetypelist"]["4"]["quickConfigList"] = [
                                ["rechargeAmount" => 100.0, "giftAmount" => 3.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                            ];
                            $data["rechargetypelist"]["4"]["random"] = 0.8192269882695508;
                            $data["rechargetypelist"]["4"]["sort"] = 90000;
                           
                                 }elseif ($payid == 11) {
                            $data["rechargetypelist"]["0"]["payTypeID"] = (int)"2123";
                            $data["rechargetypelist"]["0"]["payID"] = (int)"11";
                            $data["rechargetypelist"]["0"]["payName"] = "TRC(20)  -USDT";
                            $data["rechargetypelist"]["0"]["paySysName"] = "825";
                            $data["rechargetypelist"]["0"]["miniPrice"] = (int)"10";
                            $data["rechargetypelist"]["0"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["0"]["scope"] = "10|20|50|200|300|500";
                            $data["rechargetypelist"]["0"]["paySendUrl"] = $sites."/pay/usdt";
                            $data["rechargetypelist"]["0"]["parameters"] = '';
                            $data["rechargetypelist"]["0"]["startTime"] = "01:00";
                            $data["rechargetypelist"]["0"]["endTime"] = "23:00";
                            $data["rechargetypelist"]["0"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["0"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["0"]["quickConfig"] = "";
                            $data["rechargetypelist"]["0"]["quickConfigList"] = [
                                ["rechargeAmount" => 10.0, "giftAmount" => 0.30],
                                ["rechargeAmount" => 20.0, "giftAmount" => 0.60],
                                ["rechargeAmount" => 50.0, "giftAmount" => 1.50],
                                ["rechargeAmount" => 200.0, "giftAmount" => 6.00],
                                ["rechargeAmount" => 300.0, "giftAmount" => 9.00],
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.0],
                             ];
            
            
                        
                        }elseif ($payid == 13) {
                            $data["rechargetypelist"]["0"]["payTypeID"] = (int)"2191";
                            $data["rechargetypelist"]["0"]["payID"] = (int)"11";
                            $data["rechargetypelist"]["0"]["payName"] = "7Day-PayTM";
                            $data["rechargetypelist"]["0"]["paySysName"] = "825";
                            $data["rechargetypelist"]["0"]["miniPrice"] = (int)"200";
                            $data["rechargetypelist"]["0"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["0"]["scope"] = "500|1000|2500|5000|10000";
                            $data["rechargetypelist"]["0"]["paySendUrl"] = $sites."/pay/wepay";
                            $data["rechargetypelist"]["0"]["parameters"] = '';
                            $data["rechargetypelist"]["0"]["startTime"] = "01:00";
                            $data["rechargetypelist"]["0"]["endTime"] = "23:00";
                            $data["rechargetypelist"]["0"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["0"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["0"]["quickConfig"] = "";
                            $data["rechargetypelist"]["0"]["quickConfigList"] = [
                                ["rechargeAmount" => 500.0, "giftAmount" => 15.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 2500.0, "giftAmount" => 75.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 10000.0, "giftAmount" => 300.00],
                             ];
                            $data["rechargetypelist"]["0"]["random"] = 0.758493;
                            $data["rechargetypelist"]["0"]["sort"] = 95000;
                                           
                            $data["rechargetypelist"]["1"]["payTypeID"] = (int)"2192";
                            $data["rechargetypelist"]["1"]["payID"] = (int)"11";
                            $data["rechargetypelist"]["1"]["payName"] = "UPI-PayTM";
                            $data["rechargetypelist"]["1"]["paySysName"] = "825";
                            $data["rechargetypelist"]["1"]["miniPrice"] = (int)"200";
                            $data["rechargetypelist"]["1"]["maxPrice"] = (int)"50000";
                            $data["rechargetypelist"]["1"]["scope"] = "200|1000|2500|5000|50000";
                            $data["rechargetypelist"]["1"]["paySendUrl"] = $sites."/pay/wepay";
                            $data["rechargetypelist"]["1"]["parameters"] = '';
                            $data["rechargetypelist"]["1"]["startTime"] = "01:00";
                            $data["rechargetypelist"]["1"]["endTime"] = "23:00";
                            $data["rechargetypelist"]["1"]["rechargeRifts"] = (float)"0.03";
                            $data["rechargetypelist"]["1"]["c2cUnitAmount"] = null;
                        
                            $data["rechargetypelist"]["1"]["quickConfig"] = "";
                            $data["rechargetypelist"]["1"]["quickConfigList"] = [
                                ["rechargeAmount" => 200.0, "giftAmount" => 6.00],
                                ["rechargeAmount" => 1000.0, "giftAmount" => 30.00],
                                ["rechargeAmount" => 2500.0, "giftAmount" => 75.00],
                                ["rechargeAmount" => 5000.0, "giftAmount" => 150.00],
                                ["rechargeAmount" => 50000.0, "giftAmount" => 1500.00],
                             ];
                            $data["rechargetypelist"]["1"]["random"] = 0.758493;
                            $data["rechargetypelist"]["1"]["sort"] = 95000;
                        
                        }
						$data['banklist'] = null;
						$data['localUsdtlist'] = null;
						$data['thirdPayBankList'] = null;
												
						$res['data'] = $data;
						$res['code'] = 0;
						$res['msg'] = 'Succeed';
						$res['msgCode'] = 0;
						http_response_code(200);
						echo json_encode($res);					
					}
					else{
						$res['code'] = 4;
						$res['msg'] = 'No operation permission';
						$res['msgCode'] = 2;
						http_response_code(401);
						echo json_encode($res);
					}					
				}
				else{					
					$res['code'] = 4;
					$res['msg'] = 'No operation permission';
					$res['msgCode'] = 2;
					http_response_code(401);
					echo json_encode($res);					
				}
			}
			else{
				$res['code'] = 5;
				$res['msg'] = 'Wrong signature';
				$res['msgCode'] = 3;
				http_response_code(200);
				echo json_encode($res);				
			}
		}
		else{
			$res['code'] = 7;
			$res['msg'] = 'Param is Invalid';
			$res['msgCode'] = 6;
			http_response_code(200);
			echo json_encode($res);			
		}		
	} else {		
		http_response_code(405);
		echo json_encode($res);
	}
?>