Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php set_include_path(get_include_path() . PATH_SEPARATOR . "\x70\x68\x70\163\145\x63")..

Decoded Output download

<?php 
 set_include_path(get_include_path() . PATH_SEPARATOR . "phpsec"); require "vendor/autoload.php"; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Request; goto yEd1k; LsiPO: function get_bharatpe_business($authorization) { $header = get_bharatpe_header(); $header[] = "cookie: bharatpe_session=" . $authorization["bharatpe_session"]; $response = curl_request("GET", "https://enterprise.bharatpe.in/v1/api/brandMerchants", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["body"], true); $output = array("success" => false, "message" => "Merchant Server is Down", "data" => array()); if ($body["success"] == true) { $output = array("success" => true, "message" => "Data Fetched successfully", "data" => $body["data"]); } if (!empty($body["message"])) { $output["message"] = $body["message"]; } return $output; } goto cmMaL; GNLZO: function get_bharatpe_verifyotp($mobile, $token, $otp, $authorization) { $postData = array("mobile" => $mobile, "uuid" => $token, "otp" => $otp, "_token" => $authorization["csrftoken"]); $header = get_bharatpe_header(); $header[] = "cookie: bharatpe_session=" . $authorization["bharatpe_session"]; $response = curl_request("POST", "https://enterprise.bharatpe.in/v1/api/user/verifyotp", $postData, $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["body"], true); $output = array("success" => false, "message" => "Merchant Server is
            Down", "bharatpe_session" => null, "accessToken" => null); if ($body["success"] == true) { $output = array("success" => true, "message" => "OTP Verified
            Successfully", "bharatpe_session" => $response["cookies"]["bharatpe_session"], "accessToken" => $body["data"]["accessToken"]); } if (!empty($body["message"])) { $output["message"] = $body["message"]; } return $output; } goto LsiPO; uKpWD: function psa_accounts($userAccount) { $sql = "SELECT * FROM `psacredentials` WHERE user_id='" . $userAccount["user_id"] . "' ORDER BY `psa_id` DESC "; if ($userAccount["role"] == "Admin") { $sql = "SELECT * FROM `psacredentials` ORDER BY `psa_id` DESC "; } return rechpay_fetch_all(rechpay_query($sql)); } goto bCImN; JF0gq: function get_bharatpe_van($authorization) { $header = get_bharatpe_header(); $header[] = "cookie: bharatpe_session=" . $authorization["bharatpe_session"]; $header[] = "token: " . $authorization["accessToken"]; $response = curl_request("GET", "https://api-deposit.bharatpe.in/bharatpe-account/v1/account", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["body"], true); $output = array("success" => false, "message" => "Merchant Server is Down", "virtual_account" => array()); if ($body["success"] == true) { $output = array("success" => true, "message" => "Data Fetched\xa            successfully", "virtual_account" => $body["data"]["virtual_account"]); } if (!empty($body["message"])) { $output["message"] = $body["message"]; } return $output; } goto VtWwX; DWaF4: function get_bharatpe_otp($mobile, $authorization) { $postData = array("mobile" => $mobile, "_token" => $authorization["csrftoken"]); $header = get_bharatpe_header(); $header[] = "cookie: bharatpe_session=" . $authorization["bharatpe_session"]; $response = curl_request("POST", "https://enterprise.bharatpe.in/v1/api/user/requestotp", $postData, $header, true); $response = get_headers_from_curl_response($response); $response = json_decode($response["body"], true); $output = array("success" => false, "message" => "Merchant Server is Down", "token" => null); if ($response["success"] == true) { $output = array("success" => true, "message" => "OTP Sent Successfully", "token" => $response["data"]["uuid"]); } if (!empty($response["message"])) { $output["message"] = $response["message"]; } return $output; } goto GNLZO; Eomj2: function couponRequest($sub_psa_id, $token, $qty) { $result = array(); $sql = "SELECT * FROM `useraccount` WHERE token='" . $token . "' "; $userAccount = rechpay_fetch(rechpay_query($sql)); $userId = $userAccount["user_id"]; $query = "SELECT * FROM `psacredentials` WHERE user_id = '{$userId}'"; $data = rechpay_fetch(rechpay_query($query)); $jsession = $data["psa_session"]; $csrf = $data["psa_csrf"]; $username = $data["psa_username"]; $client = new Client(array("http_errors" => false)); $headers = array("Accept-Language" => "en-US,en;q=0.9", "Cookie" => "JSESSIONID=" . $jsession, "User-Agent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", "Host" => "www.psaonline.utiitsl.com", "Origin" => "https://www.psaonline.utiitsl.com", "Referer" => "https://psaonline.utiitsl.com/psapanservices/forms/amtdistcon/directAmtDis", "Content-Type" => "application/x-www-form-urlencoded"); $txn_no = rand(100000000000, 999999999999); $postData = array("form_params" => array("psaId" => $sub_psa_id, "distAmount" => $qty * 107, "transNo" => $txn_no, "trRemark" => "OK", "_csrf" => $csrf)); $request = new Request("POST", "https://psaonline.utiitsl.com/psapanservices/forms/amtdistcon/directAmtDistibution", $headers); $res = $client->sendAsync($request, $postData)->wait(); $response = (string) $res->getBody(); $mismatch = strpos($response, "EntityUser mismatch."); $success = strpos($response, "Success"); $statusCode = $res->getStatusCode(); if ($statusCode == 405) { return chk($data["psa_username"], $data["psa_password"], $data["psa_id"]); } if ($mismatch > 0) { $result = array("status" => "failed", "message" => "Entity User Mismatch"); } else { if ($success > 0) { $result = array("status" => "success", "message" => "Coupon Purchase SuccessFull", "sub_psa" => $sub_psa_id, "Quantity" => $qty, "transNo" => $txn_no); } else { $result = array("status" => "failed", "message" => "Something Went Wrong Please Try After Sometime"); } } return json_encode($result); } goto us4cv; IvUy2: function bharatpe_live_transactions_url($accessToken) { $url = "https://bharatpe-account.bharatpe.in/#/transactions?visa={$accessToken}&src=OT"; return $url; } goto z4ayB; fgoDh: function get_bharatpe_utrverify($authorization, $utr_number) { $header = get_bharatpe_header(); $header[] = "cookie: bharatpe_session=" . $authorization["bharatpe_session"]; $response = curl_request("GET", "https://enterprise.bharatpe.in/v1/api/transaction/recon?utr={$utr_number}", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["body"], true); $results = array(); $output = array("success" => false, "message" => "Merchant Server is Down", "results" => $results); if ($body["success"] == true) { $results["txn_id"] = $body["data"]["txn_id"]; $results["vpa"] = strtoupper($body["data"]["vpa"]); $results["txn_date"] = $body["data"]["txn_date"]; $results["amount"] = $body["data"]["amount"]; $results["received_from"] = strtoupper($body["data"]["received_from"]); $results["utr"] = $body["data"]["utr"]; $results["status"] = $body["data"]["status"]; $output = array("success" => true, "message" => "Data Fetched successfully", "results" => $results); } if (!empty($body["message"])) { $output["message"] = $body["message"]; } return $output; } goto MaMv_; RtW4b: function get_bharatpe_header() { return array("origin: https://enterprise.bharatpe.in", "referer: https://enterprise.bharatpe.in/", "user-agent: " . $_SERVER["HTTP_USER_AGENT"], "x-requested-with: XMLHttpRequest"); } goto DWaF4; dOyCt: function user_plan_data($user_id) { $result = rechpay_fetch(rechpay_query("SELECT * , useraccount.status as user_status, useraccount.is_expire as\xauser_is_expire, plans.status as plans_status FROM useraccount, plans WHERE useraccount.plan_id = plans.plan_id and\xauseraccount.user_id='" . $user_id . "' ")); if (count($result) > 0) { $expire = $result["expire_date"]; $start = time(); $end = strtotime($expire); $result["expire_days"] = ceil(abs($end - $start) / 86400); $expire_time = strtotime("+1 days", strtotime($expire)); if ($result["plan_type"] == "1 Year" && $expire_time < strtotime("+1 month")) { $result["is_expire"] = "Alert"; } if ($result["plan_type"] == "1 Month" && $expire_time < strtotime("+10 days")) { $result["is_expire"] = "Alert"; } if ($expire_time < time()) { $result["is_expire"] = "Yes"; $result["expire_days"] = 0; $result["name"] = "Plan Expired"; $result["limit"] = "No Active Plan"; } if (in_array($result["is_expire"], array("Alert", "Yes"))) { rechpay_query("UPDATE
    `useraccount` SET is_expire='" . $result[" is_expire"] . "' WHERE user_id='" . $result[" user_id"] . "' "); } } if (empty(count($result))) { $result["name"] = " No Active Plan"; $result["limit"] = "No Active Plan"; } return $result; } goto wEf8H; us4cv: function psaCreateID($token, $vleId, $ownerName, $contactName, $addressLine1, $addressLine2, $location, $state, $pinCode, $emailId, $vleMobile, $vlePan) { $result = array(); $sql = "SELECT * FROM `useraccount` WHERE token='" . $token . "' "; $userAccount = rechpay_fetch(rechpay_query($sql)); $userId = $userAccount["user_id"]; $query = "SELECT * FROM `psacredentials` WHERE user_id = '{$userId}'"; $data = rechpay_fetch(rechpay_query($query)); $jsession = $data["psa_session"]; $csrf = $data["psa_csrf"]; $client = new Client(array("http_errors" => false)); $headers = array("Accept-Language" => "en-US,en;q=0.9", "Cookie" => "JSESSIONID=" . $jsession, "User-Agent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", "Host" => "www.psaonline.utiitsl.com", "Origin" => "https://www.psaonline.utiitsl.com", "Referer" => "https://www.psaonline.utiitsl.com/psapanservices/forms/login.html/showAddUser", "Content-Type" => "application/x-www-form-urlencoded"); $options = array("form_params" => array("createUserType" => "1", "newVleId" => $vleId, "newUserId" => $vleId, "vleName" => $ownerName, "contactName" => $contactName, "addresssLine1" => $addressLine1, "addresssLine2" => $addressLine2, "addresssLine3" => '', "addresssLine4" => '', "location" => $location, "state" => $state, "vleDistrict" => "OTHER", "vlePin" => $pinCode, "emailId" => $emailId, "vleMobile" => $vleMobile, "phoneNo" => '', "vlePan" => $vlePan, "_csrf" => $csrf)); $request = new Request("POST", "https://www.psaonline.utiitsl.com/psapanservices/forms/login.html/addUser", $headers); $res = $client->sendAsync($request, $options)->wait(); $response = (string) $res->getBody(); $statusCode = $res->getStatusCode(); if ($statusCode == 405) { return chk($data["psa_username"], $data["psa_password"], $data["psa_id"]); } if (strpos($response, "errorMesg")) { $rpos = strpos($response, "errorMesg"); $spos = strpos($response, "successMesg"); $errorMesg = substr($response, $rpos, 39); $successMesg = substr($response, $spos, 180); if (strpos($errorMesg, "DUPLICATE") > 0) { $result = array("status" => "success", "psa_status" => "DUPLICATE", "psa_id" => $vleId, "message" => "PSA ID Already Exists"); } else { if (strpos($successMesg, "created") > 0) { $codepos = strpos($successMesg, "code"); $code = substr($successMesg, $codepos); $ccode = substr($code, 5, 6); $result = array("status" => "success", "psa_status" => "CREATED", "psa_id" => $vleId, "code" => $ccode, "message" => "PSA ID Created SuccessFully"); } else { $result = array("status" => "failed", "message" => "Invalid Parameters OR Special Characters Not Allowed"); } } } return json_encode($result); } goto kQZCP; yEd1k: function send_sms($number, $message) { $smsapi_url = site_data()["smsapi_url"]; $message = urlencode($message); $find = array("{NUMBER}", "{MSG}"); $repls = array($number, $message); $url = StrReplace($smsapi_url, $find, $repls); $response = file_get_contents($url); return $response; } goto jhUeZ; LNZhB: function bharatpe_transfer_to_bank_url($accessToken) { $url = "https://bharatpe-account.bharatpe.in/#/transfer-to-bank?visa={$accessToken}&src=OT"; return $url; } goto g9vEu; cmMaL: function get_bharatpe_balance($authorization) { $header = get_bharatpe_header(); $header[] = "cookie: bharatpe_session=" . $authorization["bharatpe_session"]; $header[] = "token: " . $authorization["accessToken"]; $response = curl_request("GET", "https://api-deposit.bharatpe.in/bharatpe-account/v1/account", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["body"], true); $output = array("success" => false, "message" => "Merchant Server is Down", "balance_info" => array()); if ($body["success"] == true) { $output = array("success" => true, "message" => "Data Fetched\xa            successfully", "balance_info" => $body["data"]["balance_info"]); } if (!empty($body["message"])) { $output["message"] = $body["message"]; } return $output; } goto fgoDh; DC_q7: function bharatpe_authorization($bharatpe_id, $userAccount) { return rechpay_fetch(rechpay_query("SELECT * FROM `bharatpe` WHERE user_id='" . $userAccount["user_id"] . "' and\xa            bharatpe_id='" . $bharatpe_id . "' ")); } goto LNZhB; qHjZX: function psaReset($sub_psa_id, $token) { $result = array(); $sql = "SELECT * FROM `useraccount` WHERE token='" . $token . "' "; $userAccount = rechpay_fetch(rechpay_query($sql)); $userId = $userAccount["user_id"]; $query = "SELECT * FROM `psacredentials` WHERE user_id = '{$userId}'"; $data = rechpay_fetch(rechpay_query($query)); $jsession = $data["psa_session"]; $csrf = $data["psa_csrf"]; $password = base64_encode($data["psa_password"]); $client = new Client(array("http_errors" => false)); $headers = array("Accept-Language" => "en-US,en;q=0.9", "Cookie" => "JSESSIONID=" . $jsession, "User-Agent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", "Host" => "www.psaonline.utiitsl.com", "Origin" => "https://www.psaonline.utiitsl.com", "Referer" => "https://www.psaonline.utiitsl.com/psapanservices/forms/login.html/resetUserPassword", "Content-Type" => "application/x-www-form-urlencoded"); $options = array("form_params" => array("userId" => $sub_psa_id, "userPassword" => $password, "_csrf" => $csrf)); $request = new Request("POST", "https://www.psaonline.utiitsl.com/psapanservices/forms/login.html/resetUserPassword", $headers); $res = $client->sendAsync($request, $options)->wait(); $response = (string) $res->getBody(); $statusCode = $res->getStatusCode(); if ($statusCode == "405") { return chk($data["psa_username"], $data["psa_password"], $data["psa_id"]); } else { if (strpos($response, "errorMesg")) { $rpos = strpos($response, "errorMesg"); $spos = strpos($response, "successMesg"); $errorMesg = substr($response, $rpos, 100); $successMesg = substr($response, $spos, 100); if (strpos($errorMesg, "Error in updation") > 0) { $result = array("status" => "failed", "message" => "Server Down Or Invalid PSA"); } else { if (strpos($successMesg, "password reset successfully")) { $result = array("status" => "success", "message" => "Password Reset Successfully"); } else { $result = array("status" => "failed", "message" => "Something Went Wrong Please Try After Sometime"); } } } } return json_encode($result); } goto Eomj2; wXe62: function monthly_transactions($userAccount) { $from_date = date("Y-m-") . "01"; $today = date("Y-m-d"); $sql = "SELECT * FROM `transaction` WHERE user_id='" . $userAccount["user_id"] . "' and date_time>='" . $from_date . "
        00:00:00' and date_time<='" . $today . " 23:59:59' ORDER BY `txn_id` DESC "; if ($userAccount["role"] == " Admin") { $sql = "SELECT * FROM `transaction` WHERE date_time>='" . $from_date . " 00:00:00' and
            date_time<='" . $today . " 23:59:59' ORDER BY `txn_id` DESC "; } $result = rechpay_fetch_all(rechpay_query($sql)); $amount = 0; foreach ($result as $key => $value) { $amount += $value["amount"]; } return array(" amount" => round($amount, 2), "result" => $result); } goto dnCkq; wEf8H: function today_transactions($userAccount) { $today = date("Y-m-d"); $sql = "SELECT * FROM `transaction` WHERE user_id='" . $userAccount["user_id"] . "' and date_time>='" . $today . " 00:00:00' and date_time<='" . $today . " 23:59:59' ORDER BY
        `txn_id` DESC "; if ($userAccount["role"] == " Admin") { $sql = "SELECT * FROM `transaction` WHERE date_time>='" . $today . " 00:00:00' and
        date_time<='" . $today . " 23:59:59' ORDER BY `txn_id` DESC "; } $result = rechpay_fetch_all(rechpay_query($sql)); $amount = 0; foreach ($result as $key => $value) { $amount += $value["amount"]; } return array(" amount" => round($amount, 2), "result" => $result); } goto wXe62; kQZCP: function chk($username, $password, $id) { $postData = array("username" => $username, "password" => $password); $response = json_decode(curl_request("POST", "https://v2.mcaptcha.site/tmp/autologin.php", $postData), true); if ($response["status"] == "SUCCESS") { $session = $response["Session"]; $csrf = $response["Csrf"]; rechpay_query("UPDATE psacredentials SET status = 'Active', psa_session = '{$session}', psa_csrf = '{$csrf}' WHERE psa_id = '{$id}'"); return json_encode(array("status" => "SUCCESS", "message" => "Session Updated", "PsaBalance" => $response["PsaBalance"])); } else { rechpay_query("UPDATE psacredentials SET status = 'InActive', psa_session = '', psa_csrf = '' WHERE psa_id = '{$id}'"); } } goto sN1pS; b2ZmP: function all_plans() { return rechpay_fetch_all(rechpay_query("SELECT * FROM `plans` ORDER BY `plan_id` DESC ")); } goto DC_q7; MaMv_: function get_bharatpe_qrcode($authorization) { $bharatpe_business = get_bharatpe_business($authorization); $merchantId = $bharatpe_business["data"][0]["id"]; $header = get_bharatpe_header(); $header[] = "cookie: bharatpe_session=" . $authorization["bharatpe_session"]; $header[] = "token: " . $authorization["accessToken"]; $response = curl_request("GET", "https://payments-tesseract.bharatpe.in/api/merchant/v1/downloadQr?merchantId={$merchantId}", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["body"], true); $output = array("success" => false, "message" => "Merchant Server is Down", "qrcode" => null); if ($body["status"] == true && $body["data"]["qrStatus"] == true) { $output = array("success" => true, "message" => "Data Fetched successfully", "qrcode" => $body["data"]["url"]); } if (!empty($body["message"])) { $output["message"] = $body["message"]; } return $output; } goto Jlo1s; g9vEu: function bharatpe_settlement_settings_url($accessToken) { $url = "https://bharatpe-account.bharatpe.in/#/settlement-settings?visa={$accessToken}&src=OT"; return $url; } goto IvUy2; VtWwX: function all_plan_data() { return rechpay_fetch_all(rechpay_query("SELECT * FROM `plans` WHERE status='Active' ORDER BY `amount` ASC\xa            ")); } goto b2ZmP; dnCkq: function bharatpe_accounts($userAccount) { $sql = "SELECT * FROM `bharatpe` WHERE user_id='" . $userAccount["user_id"] . "' ORDER BY `bharatpe_id` DESC "; if ($userAccount["role"] == "Admin") { $sql = "SELECT * FROM `bharatpe` ORDER BY `bharatpe_id` DESC "; } return rechpay_fetch_all(rechpay_query($sql)); } goto uKpWD; jhUeZ: function plan_data($plan_id) { return rechpay_fetch(rechpay_query("SELECT * FROM `plans` WHERE plan_id='" . $plan_id . "' ")); } goto dOyCt; bCImN: function get_bharatpe_authorization() { $response = curl_request("GET", "https://enterprise.bharatpe.in/", array(), array(), true); $response = get_headers_from_curl_response($response); libxml_use_internal_errors(true); $dom = new DOMDocument(); $dom->validateOnParse = false; $dom->recover = true; $dom->formatOutput = false; $dom->loadHTML($response["body"]); libxml_clear_errors(); $xpath = new DOMXPath($dom); $col = $xpath->query("//input[@name="_token"]"); foreach ($col as $node) { $csrftoken = $node->getAttribute("value"); } return array("csrftoken" => $csrftoken, "bharatpe_session" => $response["cookies"]["bharatpe_session"]); } goto RtW4b; Jlo1s: function get_bharatpe_qrcode_data($authorization) { $header = get_bharatpe_header(); $header[] = "token: " . $authorization["accessToken"]; $response = curl_request("GET", "https://payments-tesseract.bharatpe.in/api/v1/external/merchant/get-digital-qr-string?skipStoreTerminalMapping=true", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["body"], true); $output = array("success" => false, "message" => "Merchant Server is Down", "qrcode" => null, "vpa" => null); if ($body["status"] == true) { $qrString = urlencode($body["data"]["qrString"]); $image = "https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl={$qrString}&choe=UTF-8&chld=L|0"; parse_str(parse_url($body["data"]["qrString"], PHP_URL_QUERY), $qrdata); $output = array("success" => true, "message" => "Data Fetched\xa            successfully", "qrcode" => imgbase64($image), "qrdata" => $qrdata); } if (!empty($body["message"])) { $output["message"] = $body["message"]; } return $output; } goto JF0gq; z4ayB: function all_user_account() { return rechpay_fetch_all(rechpay_query("SELECT * FROM `useraccount` ORDER BY `user_id` ASC ")); } goto qHjZX; sN1pS: ?>

Did this file decode correctly?

Original Code

<?php
 set_include_path(get_include_path() . PATH_SEPARATOR . "\x70\x68\x70\163\145\x63"); require "\166\x65\x6e\x64\x6f\162\x2f\141\x75\x74\157\x6c\x6f\141\x64\56\160\x68\x70"; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Request; goto yEd1k; LsiPO: function get_bharatpe_business($authorization) { $header = get_bharatpe_header(); $header[] = "\x63\157\157\x6b\151\x65\x3a\x20\x62\150\141\162\x61\x74\160\145\137\163\145\x73\x73\151\x6f\156\75" . $authorization["\142\150\141\x72\141\x74\x70\x65\137\163\145\x73\163\151\x6f\x6e"]; $response = curl_request("\x47\x45\124", "\150\x74\x74\x70\163\72\57\57\x65\156\x74\145\162\x70\162\151\163\x65\56\142\x68\141\x72\141\x74\160\145\x2e\151\x6e\57\x76\x31\57\x61\x70\x69\57\142\162\141\x6e\144\x4d\x65\x72\x63\150\x61\x6e\164\x73", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["\142\157\x64\171"], true); $output = array("\x73\165\143\143\145\x73\x73" => false, "\155\145\163\163\141\147\x65" => "\x4d\145\162\x63\x68\x61\156\164\x20\x53\145\x72\166\x65\x72\x20\x69\x73\x20\x44\157\x77\x6e", "\144\x61\x74\x61" => array()); if ($body["\x73\x75\143\x63\145\163\163"] == true) { $output = array("\x73\x75\x63\143\x65\x73\x73" => true, "\x6d\145\163\163\x61\x67\x65" => "\x44\141\x74\141\x20\106\x65\164\x63\x68\145\144\40\x73\165\143\143\x65\x73\x73\146\165\x6c\154\x79", "\x64\x61\x74\x61" => $body["\144\x61\x74\x61"]); } if (!empty($body["\155\145\163\163\x61\147\x65"])) { $output["\x6d\x65\163\163\x61\147\145"] = $body["\155\145\x73\x73\x61\147\x65"]; } return $output; } goto cmMaL; GNLZO: function get_bharatpe_verifyotp($mobile, $token, $otp, $authorization) { $postData = array("\x6d\x6f\142\151\154\145" => $mobile, "\165\x75\x69\x64" => $token, "\x6f\164\x70" => $otp, "\137\x74\x6f\153\145\156" => $authorization["\x63\163\162\x66\x74\x6f\x6b\x65\x6e"]); $header = get_bharatpe_header(); $header[] = "\x63\x6f\157\x6b\151\x65\72\x20\x62\150\x61\x72\x61\x74\x70\145\137\x73\x65\163\163\x69\x6f\x6e\x3d" . $authorization["\142\150\x61\x72\x61\x74\x70\145\137\x73\x65\163\x73\x69\157\x6e"]; $response = curl_request("\x50\117\x53\x54", "\150\164\164\x70\163\72\x2f\x2f\x65\156\164\x65\x72\160\x72\151\x73\x65\x2e\142\x68\141\x72\x61\164\160\145\x2e\x69\156\x2f\x76\x31\57\x61\160\151\57\x75\x73\x65\x72\57\166\x65\162\x69\x66\x79\x6f\x74\x70", $postData, $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["\142\x6f\x64\x79"], true); $output = array("\x73\165\x63\143\145\163\x73" => false, "\155\145\x73\163\x61\147\x65" => "\x4d\145\162\x63\150\141\x6e\x74\x20\x53\145\162\166\x65\162\40\x69\x73\12\x20\x20\x20\40\40\40\40\x20\40\x20\40\40\104\157\x77\x6e", "\142\x68\x61\162\x61\164\160\x65\x5f\163\x65\163\163\151\x6f\x6e" => null, "\x61\143\x63\145\x73\x73\x54\157\x6b\x65\156" => null); if ($body["\x73\x75\x63\143\145\x73\x73"] == true) { $output = array("\163\x75\x63\143\x65\x73\163" => true, "\155\x65\x73\163\141\147\145" => "\117\124\x50\40\x56\145\162\x69\146\151\145\x64\12\x20\x20\40\x20\x20\x20\40\x20\40\40\40\40\x53\x75\143\143\145\163\163\146\165\x6c\x6c\x79", "\x62\x68\141\162\141\x74\x70\145\x5f\163\145\x73\x73\151\x6f\x6e" => $response["\x63\x6f\x6f\x6b\151\x65\x73"]["\142\x68\x61\162\x61\x74\160\x65\x5f\x73\x65\163\163\x69\157\156"], "\x61\x63\x63\145\163\163\x54\x6f\153\x65\x6e" => $body["\144\141\164\x61"]["\141\143\143\x65\163\x73\x54\157\153\145\x6e"]); } if (!empty($body["\155\145\x73\x73\141\x67\145"])) { $output["\155\145\x73\x73\141\x67\145"] = $body["\155\x65\163\x73\x61\x67\x65"]; } return $output; } goto LsiPO; uKpWD: function psa_accounts($userAccount) { $sql = "\123\105\x4c\x45\x43\x54\x20\52\x20\x46\x52\x4f\115\40\x60\x70\163\x61\143\x72\145\x64\145\156\164\x69\141\154\163\x60\x20\x57\x48\x45\x52\105\40\x75\163\x65\x72\137\151\x64\75\x27" . $userAccount["\165\x73\x65\x72\137\151\x64"] . "\47\x20\117\122\x44\105\122\x20\102\x59\40\x60\x70\x73\x61\x5f\x69\x64\140\40\104\x45\x53\x43\x20"; if ($userAccount["\162\157\154\145"] == "\101\144\x6d\151\156") { $sql = "\x53\x45\114\x45\x43\x54\40\x2a\x20\x46\122\x4f\x4d\40\x60\x70\x73\141\143\x72\x65\144\145\156\x74\151\141\154\163\x60\40\117\x52\104\105\122\40\102\131\x20\x60\x70\163\141\x5f\151\x64\x60\x20\104\105\x53\103\x20"; } return rechpay_fetch_all(rechpay_query($sql)); } goto bCImN; JF0gq: function get_bharatpe_van($authorization) { $header = get_bharatpe_header(); $header[] = "\143\x6f\157\x6b\151\x65\72\x20\x62\150\x61\162\x61\164\x70\145\137\163\x65\x73\163\x69\157\x6e\75" . $authorization["\x62\150\141\x72\x61\x74\160\x65\137\x73\x65\163\x73\151\x6f\156"]; $header[] = "\164\157\153\145\156\x3a\40" . $authorization["\141\143\143\145\x73\163\x54\157\x6b\145\156"]; $response = curl_request("\107\x45\124", "\150\x74\164\160\x73\72\x2f\x2f\x61\x70\x69\x2d\x64\145\160\x6f\x73\151\x74\x2e\142\x68\141\162\x61\x74\160\145\x2e\x69\x6e\x2f\x62\150\x61\162\x61\164\160\x65\55\141\x63\x63\157\165\x6e\164\57\166\x31\57\x61\x63\143\x6f\165\156\x74", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["\x62\x6f\x64\171"], true); $output = array("\x73\x75\143\143\x65\163\163" => false, "\155\145\163\163\141\x67\145" => "\115\145\162\x63\150\x61\156\x74\x20\123\x65\162\x76\145\x72\40\151\x73\40\104\x6f\167\156", "\x76\151\x72\x74\x75\x61\154\137\x61\x63\143\x6f\165\x6e\x74" => array()); if ($body["\x73\x75\x63\x63\x65\x73\163"] == true) { $output = array("\163\165\x63\x63\145\x73\163" => true, "\155\145\163\x73\141\x67\145" => "\104\x61\164\x61\40\106\x65\x74\143\150\145\144\xa\x20\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x73\165\143\x63\145\x73\163\146\x75\154\x6c\171", "\166\x69\x72\164\x75\x61\x6c\x5f\x61\143\143\157\x75\156\x74" => $body["\144\x61\x74\x61"]["\x76\151\x72\164\165\x61\x6c\137\x61\143\x63\157\x75\156\164"]); } if (!empty($body["\155\x65\163\x73\x61\147\145"])) { $output["\x6d\145\163\x73\141\147\x65"] = $body["\x6d\x65\x73\x73\x61\x67\x65"]; } return $output; } goto VtWwX; DWaF4: function get_bharatpe_otp($mobile, $authorization) { $postData = array("\x6d\x6f\142\x69\x6c\x65" => $mobile, "\137\x74\157\153\145\156" => $authorization["\143\163\x72\x66\164\157\x6b\145\x6e"]); $header = get_bharatpe_header(); $header[] = "\x63\157\x6f\153\x69\145\x3a\x20\142\x68\x61\162\141\164\160\x65\137\x73\145\x73\163\x69\x6f\156\75" . $authorization["\142\x68\x61\x72\x61\x74\160\145\137\x73\145\163\163\151\157\156"]; $response = curl_request("\120\117\123\x54", "\x68\164\164\160\x73\72\x2f\57\145\x6e\164\x65\162\160\162\151\x73\x65\56\142\x68\x61\x72\141\164\x70\x65\56\151\156\57\166\x31\x2f\141\160\151\x2f\165\x73\x65\x72\57\x72\145\x71\165\x65\163\164\157\164\160", $postData, $header, true); $response = get_headers_from_curl_response($response); $response = json_decode($response["\142\157\144\171"], true); $output = array("\163\165\x63\143\145\x73\163" => false, "\x6d\x65\x73\163\141\147\145" => "\x4d\145\x72\143\150\141\x6e\x74\40\123\145\162\x76\145\x72\x20\x69\x73\x20\x44\157\167\x6e", "\x74\157\x6b\145\x6e" => null); if ($response["\163\165\x63\x63\x65\163\163"] == true) { $output = array("\163\165\143\x63\x65\x73\x73" => true, "\155\145\x73\163\141\147\145" => "\117\124\x50\40\x53\x65\156\164\40\123\x75\143\143\x65\163\163\x66\x75\154\x6c\171", "\x74\157\x6b\145\x6e" => $response["\144\141\164\141"]["\165\x75\151\x64"]); } if (!empty($response["\x6d\145\163\x73\x61\x67\x65"])) { $output["\x6d\x65\163\x73\141\147\x65"] = $response["\x6d\145\x73\163\x61\147\x65"]; } return $output; } goto GNLZO; Eomj2: function couponRequest($sub_psa_id, $token, $qty) { $result = array(); $sql = "\123\105\x4c\x45\103\124\40\52\x20\x46\122\117\115\40\x60\165\163\145\x72\141\x63\143\157\165\x6e\x74\140\40\x57\x48\105\122\105\x20\164\157\153\x65\x6e\75\x27" . $token . "\x27\40"; $userAccount = rechpay_fetch(rechpay_query($sql)); $userId = $userAccount["\165\163\145\x72\137\x69\x64"]; $query = "\x53\x45\114\x45\x43\124\x20\52\40\x46\x52\x4f\x4d\x20\x60\160\x73\x61\143\x72\145\144\x65\x6e\164\x69\141\154\163\x60\40\x57\x48\x45\x52\x45\40\x75\x73\x65\x72\x5f\151\x64\x20\75\x20\x27{$userId}\x27"; $data = rechpay_fetch(rechpay_query($query)); $jsession = $data["\x70\x73\x61\137\163\145\163\163\x69\157\156"]; $csrf = $data["\160\x73\141\x5f\x63\x73\162\146"]; $username = $data["\x70\163\x61\x5f\165\x73\145\x72\x6e\x61\x6d\x65"]; $client = new Client(array("\x68\164\x74\160\x5f\x65\162\162\157\162\x73" => false)); $headers = array("\101\143\x63\x65\x70\x74\55\114\141\x6e\x67\165\x61\x67\x65" => "\x65\156\55\x55\x53\x2c\145\156\73\x71\x3d\x30\x2e\x39", "\103\x6f\x6f\153\151\x65" => "\112\x53\x45\123\123\x49\x4f\116\111\104\x3d" . $jsession, "\x55\163\145\162\55\101\x67\x65\156\164" => "\x4d\157\172\x69\x6c\x6c\x61\x2f\65\x2e\x30\x20\50\127\151\156\144\x6f\x77\163\40\x4e\124\40\61\x30\x2e\60\73\x20\x57\151\156\x36\64\x3b\x20\x78\66\64\x29\40\101\x70\160\154\x65\127\145\142\113\151\x74\x2f\x35\63\x37\x2e\x33\x36\x20\50\x4b\110\124\x4d\x4c\x2c\40\x6c\151\153\x65\40\107\145\143\153\x6f\x29\40\x43\x68\162\157\x6d\x65\x2f\61\x31\61\x2e\60\56\x30\x2e\x30\40\123\x61\146\x61\x72\x69\x2f\x35\x33\67\x2e\x33\x36", "\x48\x6f\163\164" => "\x77\x77\x77\56\x70\x73\x61\157\156\x6c\151\156\x65\x2e\165\164\x69\151\x74\163\154\56\143\x6f\155", "\x4f\x72\151\147\151\x6e" => "\x68\x74\164\x70\x73\x3a\57\57\x77\167\x77\56\160\x73\141\x6f\156\x6c\x69\x6e\x65\x2e\x75\164\x69\151\164\163\154\56\x63\157\155", "\122\145\146\145\x72\x65\162" => "\150\x74\164\x70\163\x3a\57\57\x70\x73\x61\x6f\156\154\151\156\145\x2e\165\x74\151\151\164\x73\x6c\x2e\143\x6f\155\57\160\x73\141\x70\x61\x6e\163\x65\x72\166\151\143\x65\163\x2f\x66\x6f\162\155\x73\x2f\141\x6d\164\144\151\163\x74\x63\x6f\x6e\57\144\151\x72\x65\143\164\101\x6d\164\104\151\163", "\x43\157\156\164\145\156\x74\x2d\124\x79\160\145" => "\141\160\160\154\151\143\x61\x74\x69\157\x6e\x2f\x78\55\167\167\167\x2d\146\x6f\x72\x6d\x2d\x75\x72\154\x65\156\143\157\144\145\144"); $txn_no = rand(100000000000, 999999999999); $postData = array("\146\157\162\x6d\x5f\160\x61\162\x61\155\x73" => array("\160\163\141\111\x64" => $sub_psa_id, "\x64\151\x73\x74\x41\x6d\157\165\156\x74" => $qty * 107, "\164\x72\x61\156\x73\116\157" => $txn_no, "\x74\x72\x52\145\x6d\x61\x72\x6b" => "\x4f\x4b", "\x5f\143\x73\x72\x66" => $csrf)); $request = new Request("\120\117\123\x54", "\x68\164\164\x70\163\x3a\x2f\57\x70\x73\141\x6f\156\x6c\151\156\x65\56\x75\x74\x69\x69\164\163\154\x2e\x63\157\155\x2f\x70\163\x61\x70\141\156\x73\145\x72\x76\x69\143\145\x73\57\x66\157\x72\x6d\163\57\x61\155\x74\144\151\163\164\x63\x6f\156\57\x64\x69\162\x65\143\164\101\155\x74\104\151\163\164\151\142\x75\164\x69\157\156", $headers); $res = $client->sendAsync($request, $postData)->wait(); $response = (string) $res->getBody(); $mismatch = strpos($response, "\x45\x6e\x74\151\x74\171\125\x73\145\x72\x20\x6d\x69\x73\155\141\164\x63\x68\56"); $success = strpos($response, "\x53\165\x63\x63\x65\x73\163"); $statusCode = $res->getStatusCode(); if ($statusCode == 405) { return chk($data["\x70\163\141\137\165\163\145\x72\x6e\x61\155\x65"], $data["\x70\x73\141\x5f\x70\x61\163\x73\x77\157\162\x64"], $data["\x70\x73\x61\137\151\144"]); } if ($mismatch > 0) { $result = array("\x73\x74\141\x74\165\x73" => "\146\141\151\x6c\x65\x64", "\155\x65\x73\x73\141\x67\145" => "\x45\156\164\151\x74\x79\x20\125\163\145\162\x20\115\151\163\x6d\x61\x74\x63\x68"); } else { if ($success > 0) { $result = array("\x73\x74\141\x74\165\x73" => "\163\x75\143\x63\145\163\x73", "\x6d\x65\163\163\141\x67\145" => "\103\x6f\165\x70\157\156\x20\120\x75\x72\143\x68\x61\x73\x65\40\x53\165\143\x63\x65\163\x73\106\x75\154\154", "\163\x75\142\x5f\x70\163\x61" => $sub_psa_id, "\121\x75\141\156\x74\151\x74\x79" => $qty, "\164\x72\141\x6e\x73\x4e\x6f" => $txn_no); } else { $result = array("\163\x74\141\x74\x75\x73" => "\x66\141\151\x6c\145\x64", "\155\145\163\163\141\147\145" => "\x53\x6f\x6d\x65\x74\150\151\156\147\40\127\x65\156\x74\x20\x57\x72\157\156\x67\40\120\x6c\145\x61\163\x65\40\x54\162\171\40\x41\x66\164\145\162\40\123\157\155\145\164\151\155\x65"); } } return json_encode($result); } goto us4cv; IvUy2: function bharatpe_live_transactions_url($accessToken) { $url = "\x68\164\x74\160\x73\72\x2f\57\x62\150\x61\x72\141\164\160\145\55\141\143\143\157\x75\x6e\164\x2e\142\x68\141\162\x61\164\x70\x65\x2e\151\156\57\x23\x2f\164\x72\x61\x6e\163\141\x63\x74\x69\157\156\x73\77\166\151\163\141\75{$accessToken}\46\163\162\143\75\117\x54"; return $url; } goto z4ayB; fgoDh: function get_bharatpe_utrverify($authorization, $utr_number) { $header = get_bharatpe_header(); $header[] = "\x63\x6f\157\x6b\151\145\72\40\x62\150\x61\162\x61\164\x70\x65\x5f\163\145\163\x73\151\x6f\x6e\x3d" . $authorization["\x62\x68\141\x72\141\x74\x70\x65\137\163\x65\163\163\151\x6f\156"]; $response = curl_request("\x47\105\x54", "\x68\164\164\160\x73\x3a\x2f\57\145\156\164\145\x72\160\162\x69\x73\x65\56\x62\150\x61\x72\x61\164\x70\x65\x2e\151\x6e\x2f\166\x31\57\141\x70\x69\x2f\164\x72\x61\156\163\x61\x63\x74\x69\157\x6e\x2f\x72\x65\143\157\156\77\x75\164\x72\x3d{$utr_number}", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["\142\x6f\144\171"], true); $results = array(); $output = array("\163\165\x63\143\x65\x73\163" => false, "\x6d\145\163\163\x61\x67\x65" => "\115\145\x72\x63\x68\141\156\164\x20\x53\x65\x72\166\145\162\40\x69\x73\40\x44\x6f\167\x6e", "\162\x65\163\165\154\x74\163" => $results); if ($body["\x73\x75\x63\143\145\163\163"] == true) { $results["\164\x78\156\x5f\x69\x64"] = $body["\144\x61\x74\141"]["\164\170\156\137\x69\x64"]; $results["\166\x70\x61"] = strtoupper($body["\144\141\x74\x61"]["\166\x70\x61"]); $results["\x74\170\x6e\137\144\x61\164\145"] = $body["\x64\141\x74\141"]["\x74\170\x6e\137\144\x61\164\x65"]; $results["\141\x6d\157\165\156\x74"] = $body["\x64\141\164\x61"]["\x61\155\x6f\x75\156\164"]; $results["\x72\145\143\x65\151\x76\x65\144\137\x66\x72\157\x6d"] = strtoupper($body["\x64\x61\x74\141"]["\162\x65\x63\x65\x69\166\x65\144\x5f\x66\162\x6f\155"]); $results["\165\164\162"] = $body["\x64\141\164\141"]["\165\164\x72"]; $results["\x73\164\141\164\165\x73"] = $body["\144\141\x74\141"]["\x73\164\x61\164\165\163"]; $output = array("\x73\165\x63\x63\x65\163\163" => true, "\x6d\x65\163\x73\x61\147\145" => "\104\141\164\x61\x20\106\x65\164\x63\150\145\x64\40\x73\x75\143\x63\x65\163\x73\x66\x75\154\x6c\171", "\162\x65\x73\x75\154\164\x73" => $results); } if (!empty($body["\x6d\145\163\x73\141\x67\x65"])) { $output["\155\145\x73\x73\141\147\145"] = $body["\x6d\145\x73\x73\141\147\x65"]; } return $output; } goto MaMv_; RtW4b: function get_bharatpe_header() { return array("\157\x72\151\x67\x69\x6e\x3a\x20\150\164\164\160\163\x3a\57\57\x65\156\x74\145\162\x70\162\x69\x73\x65\x2e\142\x68\141\162\141\164\160\145\x2e\x69\x6e", "\162\x65\146\145\162\145\x72\72\40\150\164\164\160\163\x3a\57\x2f\x65\x6e\164\x65\162\x70\162\151\163\x65\x2e\142\x68\141\162\x61\x74\160\x65\56\x69\x6e\57", "\165\x73\x65\162\55\141\x67\145\156\164\72\40" . $_SERVER["\x48\x54\124\120\137\x55\x53\105\122\137\101\107\x45\x4e\124"], "\170\x2d\162\x65\161\165\145\x73\164\145\x64\55\x77\x69\x74\x68\x3a\40\130\x4d\x4c\x48\164\x74\160\122\x65\161\x75\145\x73\164"); } goto DWaF4; dOyCt: function user_plan_data($user_id) { $result = rechpay_fetch(rechpay_query("\123\x45\x4c\x45\x43\124\x20\52\x20\x2c\40\x75\x73\x65\x72\141\143\143\157\165\x6e\164\56\x73\164\141\x74\x75\163\40\x61\x73\x20\165\163\145\x72\x5f\x73\164\x61\164\165\x73\x2c\40\165\x73\x65\x72\141\x63\x63\x6f\165\156\x74\56\x69\163\x5f\145\170\x70\x69\162\145\40\x61\x73\xa\165\x73\145\162\137\x69\x73\x5f\x65\x78\x70\151\x72\x65\54\x20\x70\154\x61\156\163\56\163\x74\141\x74\165\163\40\141\x73\40\160\x6c\141\x6e\163\137\x73\x74\x61\x74\x75\163\40\x46\x52\x4f\115\40\x75\163\145\162\141\x63\x63\x6f\165\156\164\x2c\x20\x70\x6c\141\156\x73\40\x57\110\105\x52\105\x20\165\x73\145\162\141\143\x63\157\x75\x6e\x74\x2e\160\x6c\141\x6e\x5f\x69\144\40\x3d\x20\x70\x6c\141\156\x73\x2e\160\154\141\156\x5f\151\x64\40\x61\x6e\x64\xa\165\163\x65\x72\x61\143\143\157\x75\156\164\x2e\x75\163\145\162\x5f\x69\x64\75\47" . $user_id . "\x27\40")); if (count($result) > 0) { $expire = $result["\145\x78\x70\151\162\x65\x5f\144\x61\164\145"]; $start = time(); $end = strtotime($expire); $result["\x65\170\160\x69\x72\x65\137\x64\x61\171\x73"] = ceil(abs($end - $start) / 86400); $expire_time = strtotime("\53\x31\x20\x64\x61\x79\163", strtotime($expire)); if ($result["\x70\x6c\x61\x6e\137\164\x79\x70\145"] == "\61\x20\131\145\141\162" && $expire_time < strtotime("\53\61\x20\155\157\x6e\x74\x68")) { $result["\151\163\137\145\170\160\x69\162\x65"] = "\101\x6c\x65\162\x74"; } if ($result["\160\x6c\x61\156\137\x74\171\160\145"] == "\61\x20\x4d\157\x6e\164\x68" && $expire_time < strtotime("\x2b\x31\60\x20\x64\141\171\163")) { $result["\x69\163\137\x65\170\x70\151\162\x65"] = "\x41\154\x65\162\164"; } if ($expire_time < time()) { $result["\x69\x73\x5f\145\x78\x70\151\x72\145"] = "\x59\145\x73"; $result["\145\170\x70\151\162\145\137\144\141\x79\x73"] = 0; $result["\156\x61\x6d\145"] = "\120\x6c\x61\x6e\x20\x45\170\x70\x69\x72\x65\x64"; $result["\x6c\151\155\151\x74"] = "\116\x6f\x20\101\x63\164\151\x76\x65\x20\120\x6c\141\156"; } if (in_array($result["\x69\x73\137\x65\x78\x70\x69\x72\145"], array("\101\x6c\145\162\164", "\131\145\x73"))) { rechpay_query("\x55\x50\104\x41\124\x45\12\x20\x20\x20\40\x60\165\163\x65\x72\141\x63\x63\x6f\165\x6e\x74\x60\x20\123\105\124\40\151\x73\x5f\145\170\160\x69\162\145\x3d\x27" . $result["\x20\x69\163\137\x65\x78\160\151\x72\145"] . "\47\x20\127\x48\x45\x52\x45\40\x75\x73\x65\162\x5f\151\144\x3d\47" . $result["\x20\x75\x73\145\x72\137\x69\144"] . "\x27\x20"); } } if (empty(count($result))) { $result["\156\x61\155\145"] = "\40\116\157\40\101\143\x74\151\x76\x65\40\120\154\x61\x6e"; $result["\x6c\x69\x6d\x69\164"] = "\x4e\157\x20\101\x63\164\151\x76\145\x20\x50\x6c\141\156"; } return $result; } goto wEf8H; us4cv: function psaCreateID($token, $vleId, $ownerName, $contactName, $addressLine1, $addressLine2, $location, $state, $pinCode, $emailId, $vleMobile, $vlePan) { $result = array(); $sql = "\x53\x45\114\x45\103\124\x20\x2a\x20\106\122\117\x4d\x20\x60\165\163\145\162\141\143\x63\x6f\165\156\164\x60\40\x57\x48\x45\122\x45\40\x74\x6f\x6b\145\156\x3d\47" . $token . "\47\x20"; $userAccount = rechpay_fetch(rechpay_query($sql)); $userId = $userAccount["\x75\163\x65\162\137\x69\x64"]; $query = "\x53\105\x4c\105\103\x54\x20\52\40\x46\122\x4f\115\x20\140\x70\163\x61\x63\x72\145\x64\x65\x6e\164\x69\x61\x6c\x73\x60\40\127\110\105\122\105\x20\x75\x73\145\162\137\151\144\40\x3d\40\47{$userId}\x27"; $data = rechpay_fetch(rechpay_query($query)); $jsession = $data["\x70\163\x61\137\x73\145\163\163\x69\157\156"]; $csrf = $data["\x70\x73\141\137\x63\x73\162\x66"]; $client = new Client(array("\x68\x74\x74\x70\137\x65\x72\162\x6f\162\x73" => false)); $headers = array("\x41\x63\x63\x65\x70\x74\x2d\x4c\x61\156\x67\x75\141\x67\145" => "\x65\156\x2d\125\123\54\x65\x6e\73\161\75\x30\x2e\x39", "\x43\x6f\157\x6b\151\x65" => "\112\123\x45\x53\123\111\x4f\x4e\x49\x44\75" . $jsession, "\125\x73\x65\x72\x2d\x41\x67\x65\156\x74" => "\x4d\x6f\x7a\151\x6c\154\x61\57\65\56\60\x20\x28\x57\151\156\144\x6f\167\x73\x20\x4e\124\x20\61\x30\56\x30\73\x20\x57\151\x6e\x36\64\x3b\x20\x78\66\64\x29\40\x41\x70\x70\x6c\x65\127\145\x62\113\151\164\x2f\65\63\x37\56\63\66\40\x28\113\110\x54\x4d\114\54\x20\154\x69\153\145\x20\x47\x65\143\x6b\157\x29\40\x43\150\162\x6f\x6d\145\57\x31\61\61\56\x30\x2e\60\56\x30\x20\123\x61\146\141\162\x69\x2f\x35\63\x37\56\x33\x36", "\x48\157\163\x74" => "\x77\167\167\56\160\163\141\x6f\156\154\x69\156\x65\56\165\x74\x69\x69\x74\163\x6c\56\143\x6f\155", "\117\x72\151\147\x69\156" => "\x68\x74\x74\160\163\72\x2f\57\167\167\167\x2e\x70\x73\141\157\156\x6c\x69\156\x65\56\165\164\x69\151\x74\163\x6c\x2e\143\157\155", "\x52\145\146\145\x72\x65\x72" => "\x68\164\x74\160\163\x3a\57\57\167\x77\x77\56\x70\x73\x61\157\156\154\x69\x6e\x65\x2e\x75\x74\151\151\164\163\x6c\x2e\143\157\x6d\x2f\160\x73\141\x70\x61\x6e\163\145\162\166\151\143\145\163\57\146\x6f\162\x6d\163\x2f\x6c\x6f\147\151\156\x2e\150\x74\155\154\x2f\163\150\x6f\167\101\x64\x64\x55\x73\x65\162", "\103\x6f\156\164\145\x6e\164\x2d\x54\x79\160\145" => "\141\160\x70\154\151\143\141\164\x69\157\x6e\57\x78\x2d\167\167\167\55\x66\157\162\155\55\x75\x72\x6c\x65\156\x63\x6f\144\145\144"); $options = array("\146\157\162\x6d\x5f\160\141\x72\x61\x6d\163" => array("\x63\x72\145\x61\x74\x65\125\x73\145\162\x54\x79\x70\x65" => "\61", "\156\x65\167\x56\154\x65\x49\x64" => $vleId, "\156\x65\x77\x55\163\x65\162\111\144" => $vleId, "\x76\x6c\x65\116\141\155\x65" => $ownerName, "\x63\x6f\x6e\164\141\143\x74\x4e\141\x6d\x65" => $contactName, "\141\144\144\162\x65\163\163\163\x4c\151\156\145\x31" => $addressLine1, "\141\144\x64\162\x65\163\x73\x73\114\x69\x6e\x65\62" => $addressLine2, "\x61\x64\x64\162\x65\163\x73\x73\x4c\151\156\145\x33" => '', "\141\144\x64\162\145\x73\x73\x73\114\x69\156\x65\64" => '', "\154\x6f\x63\141\164\x69\x6f\x6e" => $location, "\163\x74\141\x74\145" => $state, "\x76\x6c\x65\104\x69\x73\164\x72\x69\143\x74" => "\117\124\110\105\x52", "\x76\154\145\120\x69\x6e" => $pinCode, "\x65\155\x61\151\x6c\x49\x64" => $emailId, "\x76\x6c\145\x4d\x6f\x62\151\154\x65" => $vleMobile, "\x70\x68\x6f\x6e\x65\x4e\157" => '', "\x76\x6c\145\x50\141\x6e" => $vlePan, "\x5f\x63\163\x72\146" => $csrf)); $request = new Request("\x50\x4f\x53\x54", "\150\x74\x74\x70\x73\x3a\x2f\x2f\167\167\167\x2e\160\163\141\157\156\154\151\156\145\56\x75\x74\151\151\164\163\x6c\x2e\143\157\155\57\160\x73\141\x70\x61\x6e\x73\145\162\166\x69\143\145\x73\57\146\157\162\x6d\x73\57\x6c\x6f\x67\151\x6e\56\x68\164\155\154\x2f\141\x64\x64\x55\163\x65\162", $headers); $res = $client->sendAsync($request, $options)->wait(); $response = (string) $res->getBody(); $statusCode = $res->getStatusCode(); if ($statusCode == 405) { return chk($data["\160\163\141\137\165\x73\145\x72\x6e\x61\155\x65"], $data["\160\x73\x61\137\160\141\163\x73\167\x6f\x72\144"], $data["\x70\163\x61\137\x69\144"]); } if (strpos($response, "\x65\162\x72\x6f\x72\x4d\x65\x73\147")) { $rpos = strpos($response, "\x65\x72\x72\157\162\115\145\x73\x67"); $spos = strpos($response, "\163\x75\x63\x63\x65\x73\163\115\145\163\147"); $errorMesg = substr($response, $rpos, 39); $successMesg = substr($response, $spos, 180); if (strpos($errorMesg, "\x44\125\x50\114\x49\103\101\124\x45") > 0) { $result = array("\x73\164\141\164\165\x73" => "\x73\165\x63\x63\x65\x73\x73", "\160\x73\x61\137\x73\x74\x61\164\x75\163" => "\x44\125\x50\114\111\x43\x41\x54\x45", "\x70\x73\x61\137\x69\144" => $vleId, "\155\x65\163\x73\x61\147\x65" => "\x50\123\101\x20\111\x44\40\x41\x6c\x72\145\141\144\x79\x20\x45\170\151\163\x74\163"); } else { if (strpos($successMesg, "\143\x72\x65\141\164\x65\x64") > 0) { $codepos = strpos($successMesg, "\143\157\x64\x65"); $code = substr($successMesg, $codepos); $ccode = substr($code, 5, 6); $result = array("\163\x74\141\x74\x75\x73" => "\163\165\143\143\145\163\163", "\x70\x73\x61\137\163\164\x61\164\x75\163" => "\x43\x52\x45\101\x54\105\x44", "\x70\x73\141\x5f\x69\144" => $vleId, "\143\x6f\x64\x65" => $ccode, "\x6d\145\x73\163\x61\x67\x65" => "\120\123\101\x20\x49\104\x20\103\x72\145\x61\x74\145\x64\40\123\x75\x63\143\145\163\163\106\165\x6c\x6c\171"); } else { $result = array("\x73\164\141\x74\x75\163" => "\x66\141\151\154\145\144", "\x6d\x65\x73\163\x61\x67\x65" => "\111\156\x76\141\154\151\x64\x20\x50\x61\x72\x61\x6d\x65\x74\145\162\x73\x20\x4f\x52\x20\123\160\145\x63\x69\x61\154\x20\x43\150\141\x72\x61\143\x74\145\x72\x73\x20\x4e\157\x74\40\x41\x6c\154\157\167\145\x64"); } } } return json_encode($result); } goto kQZCP; yEd1k: function send_sms($number, $message) { $smsapi_url = site_data()["\x73\x6d\x73\x61\160\151\137\x75\x72\x6c"]; $message = urlencode($message); $find = array("\x7b\x4e\125\115\102\105\122\x7d", "\173\x4d\x53\x47\175"); $repls = array($number, $message); $url = StrReplace($smsapi_url, $find, $repls); $response = file_get_contents($url); return $response; } goto jhUeZ; LNZhB: function bharatpe_transfer_to_bank_url($accessToken) { $url = "\x68\164\x74\160\163\72\57\x2f\142\x68\141\162\x61\164\x70\145\x2d\141\x63\x63\157\x75\x6e\164\x2e\x62\150\141\x72\x61\164\160\145\x2e\x69\x6e\57\43\57\x74\x72\x61\156\x73\x66\145\162\55\164\157\x2d\x62\141\x6e\153\x3f\166\x69\163\x61\x3d{$accessToken}\x26\x73\x72\x63\x3d\x4f\124"; return $url; } goto g9vEu; cmMaL: function get_bharatpe_balance($authorization) { $header = get_bharatpe_header(); $header[] = "\143\x6f\157\153\151\145\72\40\142\150\141\162\x61\164\160\x65\x5f\x73\145\x73\163\x69\x6f\x6e\x3d" . $authorization["\x62\150\x61\x72\x61\164\160\145\137\163\x65\x73\x73\151\x6f\x6e"]; $header[] = "\x74\x6f\153\x65\156\x3a\40" . $authorization["\x61\143\143\x65\x73\x73\124\157\153\x65\x6e"]; $response = curl_request("\x47\105\124", "\150\x74\164\160\x73\x3a\x2f\x2f\x61\x70\x69\55\144\145\160\x6f\x73\x69\164\x2e\x62\x68\x61\162\141\x74\x70\x65\x2e\151\156\x2f\x62\x68\141\162\x61\164\160\145\55\141\x63\143\x6f\165\x6e\164\57\x76\x31\57\x61\x63\143\157\x75\156\x74", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["\142\x6f\x64\x79"], true); $output = array("\x73\x75\x63\143\x65\163\163" => false, "\155\145\163\163\141\147\145" => "\x4d\145\162\x63\x68\x61\156\164\x20\123\145\x72\x76\x65\x72\40\151\163\40\104\157\x77\x6e", "\x62\x61\154\141\156\143\145\x5f\151\x6e\146\157" => array()); if ($body["\163\x75\143\143\x65\x73\163"] == true) { $output = array("\163\x75\143\x63\x65\x73\163" => true, "\155\145\x73\x73\x61\147\x65" => "\x44\141\164\141\x20\x46\x65\x74\x63\150\x65\144\xa\40\x20\x20\40\x20\40\40\40\40\x20\40\40\x73\165\x63\143\x65\x73\x73\146\165\154\x6c\171", "\142\x61\x6c\141\156\x63\145\137\x69\x6e\146\157" => $body["\x64\141\x74\x61"]["\142\x61\154\x61\156\x63\145\x5f\151\156\x66\x6f"]); } if (!empty($body["\155\145\x73\163\x61\147\145"])) { $output["\155\145\163\x73\x61\147\145"] = $body["\x6d\145\163\x73\x61\x67\145"]; } return $output; } goto fgoDh; DC_q7: function bharatpe_authorization($bharatpe_id, $userAccount) { return rechpay_fetch(rechpay_query("\x53\105\x4c\x45\103\124\40\x2a\40\106\122\x4f\115\x20\140\142\150\x61\x72\141\x74\160\x65\x60\40\x57\110\x45\x52\x45\x20\165\x73\x65\x72\x5f\x69\x64\x3d\x27" . $userAccount["\165\163\x65\x72\137\x69\144"] . "\x27\40\141\156\144\xa\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\x62\150\141\x72\x61\164\160\x65\x5f\x69\x64\75\x27" . $bharatpe_id . "\x27\40")); } goto LNZhB; qHjZX: function psaReset($sub_psa_id, $token) { $result = array(); $sql = "\x53\105\114\x45\103\124\x20\52\x20\x46\122\117\x4d\x20\140\165\x73\x65\x72\141\143\x63\157\x75\x6e\164\x60\x20\127\110\x45\x52\x45\40\164\x6f\x6b\x65\x6e\75\x27" . $token . "\x27\40"; $userAccount = rechpay_fetch(rechpay_query($sql)); $userId = $userAccount["\x75\163\x65\x72\x5f\151\x64"]; $query = "\x53\105\x4c\x45\x43\124\40\52\40\x46\x52\x4f\115\40\140\x70\163\141\x63\162\x65\144\145\156\x74\151\x61\154\x73\140\x20\127\x48\105\122\x45\40\x75\163\x65\162\x5f\x69\x64\x20\x3d\x20\x27{$userId}\x27"; $data = rechpay_fetch(rechpay_query($query)); $jsession = $data["\160\x73\141\137\163\145\163\x73\151\x6f\x6e"]; $csrf = $data["\160\163\x61\x5f\143\x73\162\x66"]; $password = base64_encode($data["\160\163\x61\x5f\x70\141\x73\x73\167\x6f\x72\144"]); $client = new Client(array("\150\x74\164\x70\137\x65\x72\x72\x6f\x72\x73" => false)); $headers = array("\101\143\x63\x65\x70\164\x2d\x4c\141\156\147\165\141\x67\145" => "\x65\156\55\x55\x53\x2c\145\156\73\161\75\60\x2e\71", "\x43\x6f\157\153\x69\145" => "\x4a\x53\105\x53\x53\x49\117\116\111\x44\x3d" . $jsession, "\x55\163\x65\x72\x2d\x41\147\145\x6e\x74" => "\x4d\x6f\172\151\154\154\x61\x2f\65\x2e\60\x20\x28\x57\151\x6e\x64\x6f\x77\x73\x20\116\124\x20\61\60\x2e\x30\x3b\x20\127\151\x6e\x36\x34\x3b\40\x78\x36\x34\x29\40\x41\160\160\x6c\145\x57\x65\142\x4b\151\x74\57\65\63\67\56\63\66\40\x28\x4b\110\124\115\x4c\x2c\40\x6c\151\153\145\40\x47\145\143\x6b\x6f\x29\40\103\150\x72\157\155\x65\57\x31\61\61\x2e\60\x2e\x30\x2e\60\x20\123\141\146\141\162\151\x2f\x35\63\67\56\63\x36", "\x48\157\x73\x74" => "\167\167\167\x2e\160\163\x61\x6f\156\x6c\151\156\145\x2e\165\164\x69\151\x74\163\154\56\x63\x6f\x6d", "\117\x72\151\x67\x69\156" => "\150\164\164\160\x73\x3a\57\x2f\x77\167\167\56\x70\x73\141\157\x6e\x6c\x69\156\x65\x2e\x75\x74\151\151\164\163\154\x2e\x63\x6f\x6d", "\122\x65\146\x65\162\x65\162" => "\x68\164\164\160\163\72\57\57\167\x77\x77\56\160\163\141\x6f\x6e\154\151\x6e\145\x2e\x75\164\x69\151\x74\x73\x6c\x2e\x63\157\155\57\x70\x73\x61\160\141\x6e\163\x65\x72\x76\151\143\145\163\57\146\157\x72\x6d\x73\x2f\x6c\x6f\x67\x69\x6e\56\x68\164\x6d\154\x2f\x72\145\163\x65\x74\x55\163\145\162\x50\141\163\163\167\x6f\162\x64", "\x43\157\156\x74\x65\156\164\55\124\x79\x70\145" => "\x61\160\x70\154\151\143\x61\x74\x69\157\x6e\x2f\170\55\167\x77\x77\55\x66\157\x72\155\55\165\162\154\145\156\143\x6f\x64\x65\x64"); $options = array("\x66\157\162\x6d\137\x70\x61\x72\141\155\163" => array("\165\x73\x65\162\111\144" => $sub_psa_id, "\165\163\x65\162\120\x61\x73\x73\167\157\162\x64" => $password, "\137\143\x73\162\146" => $csrf)); $request = new Request("\120\117\123\124", "\x68\164\164\x70\x73\x3a\x2f\x2f\167\167\x77\56\160\x73\141\157\156\x6c\151\156\x65\56\x75\164\x69\151\164\163\x6c\56\x63\157\x6d\x2f\x70\163\141\160\x61\x6e\163\145\x72\166\151\143\145\163\57\146\x6f\x72\x6d\163\57\154\157\147\x69\156\56\x68\164\x6d\154\57\x72\x65\x73\145\x74\125\x73\145\162\120\x61\163\x73\x77\157\162\x64", $headers); $res = $client->sendAsync($request, $options)->wait(); $response = (string) $res->getBody(); $statusCode = $res->getStatusCode(); if ($statusCode == "\x34\x30\x35") { return chk($data["\160\163\141\x5f\165\163\145\162\156\141\x6d\x65"], $data["\x70\x73\x61\137\x70\141\163\163\x77\x6f\162\x64"], $data["\160\163\141\137\151\x64"]); } else { if (strpos($response, "\145\162\162\157\x72\115\x65\163\147")) { $rpos = strpos($response, "\x65\x72\x72\157\162\115\145\x73\x67"); $spos = strpos($response, "\x73\165\x63\x63\x65\x73\163\115\x65\x73\147"); $errorMesg = substr($response, $rpos, 100); $successMesg = substr($response, $spos, 100); if (strpos($errorMesg, "\x45\162\162\157\x72\x20\151\156\x20\x75\x70\144\141\x74\x69\157\156") > 0) { $result = array("\163\x74\x61\164\x75\163" => "\146\141\151\154\x65\144", "\x6d\145\x73\163\x61\147\145" => "\x53\x65\162\x76\x65\x72\x20\x44\157\x77\x6e\40\117\162\40\111\156\166\x61\154\x69\x64\40\120\123\101"); } else { if (strpos($successMesg, "\x70\x61\x73\x73\x77\x6f\162\144\x20\162\x65\163\145\x74\x20\x73\165\143\143\x65\163\163\x66\x75\154\154\171")) { $result = array("\163\164\141\164\x75\x73" => "\x73\165\x63\x63\x65\x73\163", "\x6d\x65\x73\163\x61\147\x65" => "\120\141\163\163\167\x6f\x72\144\40\x52\145\163\x65\164\x20\123\165\143\x63\x65\x73\163\x66\x75\x6c\154\x79"); } else { $result = array("\163\164\x61\164\165\x73" => "\146\x61\x69\154\x65\144", "\155\145\x73\163\x61\147\x65" => "\x53\x6f\x6d\145\x74\150\x69\156\x67\x20\x57\x65\x6e\x74\40\127\162\x6f\x6e\x67\40\x50\x6c\x65\x61\x73\x65\40\124\x72\171\40\x41\146\x74\x65\x72\x20\123\x6f\x6d\145\164\151\x6d\x65"); } } } } return json_encode($result); } goto Eomj2; wXe62: function monthly_transactions($userAccount) { $from_date = date("\131\55\x6d\x2d") . "\60\x31"; $today = date("\x59\55\x6d\x2d\x64"); $sql = "\x53\105\x4c\x45\103\124\x20\x2a\x20\x46\122\117\115\40\140\164\162\141\156\x73\x61\143\164\151\157\156\140\x20\x57\x48\105\122\x45\x20\165\x73\x65\162\137\151\x64\75\x27" . $userAccount["\x75\x73\145\x72\x5f\151\144"] . "\47\40\141\156\x64\x20\144\x61\164\x65\x5f\x74\x69\x6d\x65\x3e\75\47" . $from_date . "\12\40\40\x20\40\40\x20\40\40\x30\60\x3a\60\60\x3a\x30\60\47\40\x61\156\x64\x20\144\141\164\145\137\x74\151\x6d\145\74\x3d\x27" . $today . "\x20\x32\63\x3a\65\71\72\65\x39\47\x20\117\122\x44\x45\122\40\102\131\40\x60\x74\170\156\x5f\x69\144\x60\x20\x44\105\123\x43\x20"; if ($userAccount["\162\x6f\x6c\x65"] == "\x20\101\144\155\x69\x6e") { $sql = "\123\x45\114\105\103\124\40\x2a\40\106\122\x4f\x4d\40\140\x74\x72\141\156\x73\141\143\164\x69\157\x6e\140\x20\x57\x48\x45\122\x45\40\144\x61\x74\x65\x5f\164\151\155\145\76\75\x27" . $from_date . "\40\60\x30\x3a\x30\60\x3a\x30\x30\47\40\x61\x6e\144\12\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x64\x61\164\145\137\164\151\155\x65\x3c\x3d\x27" . $today . "\40\x32\63\x3a\65\71\x3a\x35\71\x27\x20\x4f\x52\x44\105\x52\x20\102\x59\40\x60\164\x78\x6e\x5f\151\144\140\x20\104\x45\123\x43\x20"; } $result = rechpay_fetch_all(rechpay_query($sql)); $amount = 0; foreach ($result as $key => $value) { $amount += $value["\141\155\x6f\165\156\x74"]; } return array("\40\x61\155\157\x75\156\x74" => round($amount, 2), "\x72\x65\163\165\154\164" => $result); } goto dnCkq; wEf8H: function today_transactions($userAccount) { $today = date("\x59\55\155\55\144"); $sql = "\x53\x45\114\x45\103\124\40\x2a\40\106\x52\117\115\40\x60\164\x72\141\x6e\x73\141\143\164\x69\x6f\156\140\x20\x57\x48\105\x52\105\x20\x75\163\x65\162\137\x69\x64\x3d\x27" . $userAccount["\165\163\145\162\x5f\x69\x64"] . "\47\x20\x61\x6e\144\40\144\x61\164\x65\137\164\151\x6d\145\76\75\47" . $today . "\x20\60\x30\72\x30\60\x3a\x30\60\x27\x20\141\x6e\144\x20\144\141\x74\145\137\164\151\155\x65\74\x3d\47" . $today . "\40\x32\x33\x3a\65\x39\x3a\x35\71\47\x20\117\x52\104\x45\x52\40\102\131\12\40\40\x20\40\40\x20\x20\40\x60\164\170\x6e\137\151\144\140\x20\x44\105\x53\103\x20"; if ($userAccount["\162\x6f\x6c\x65"] == "\40\101\x64\155\151\x6e") { $sql = "\x53\105\114\105\103\x54\x20\x2a\40\x46\122\117\115\40\x60\x74\162\x61\x6e\163\141\143\164\x69\x6f\156\x60\40\127\110\x45\x52\x45\40\144\x61\x74\x65\x5f\164\x69\x6d\145\76\x3d\47" . $today . "\40\x30\x30\x3a\60\60\x3a\60\60\47\40\x61\x6e\144\12\x20\40\x20\40\x20\40\40\x20\144\141\x74\x65\x5f\164\x69\155\145\74\x3d\x27" . $today . "\x20\x32\x33\72\65\x39\x3a\x35\x39\x27\40\117\x52\x44\x45\x52\x20\x42\131\x20\x60\164\170\x6e\137\x69\144\140\40\104\x45\123\x43\40"; } $result = rechpay_fetch_all(rechpay_query($sql)); $amount = 0; foreach ($result as $key => $value) { $amount += $value["\141\x6d\x6f\165\x6e\x74"]; } return array("\40\x61\x6d\157\x75\x6e\x74" => round($amount, 2), "\x72\145\x73\165\154\x74" => $result); } goto wXe62; kQZCP: function chk($username, $password, $id) { $postData = array("\x75\163\x65\162\156\141\155\x65" => $username, "\160\x61\163\x73\167\157\x72\144" => $password); $response = json_decode(curl_request("\120\x4f\x53\124", "\x68\164\164\x70\163\x3a\x2f\57\166\62\56\155\143\141\x70\x74\x63\x68\x61\x2e\x73\x69\x74\145\x2f\164\155\160\57\141\165\164\x6f\x6c\x6f\147\151\x6e\x2e\160\x68\160", $postData), true); if ($response["\163\x74\x61\164\165\x73"] == "\123\125\103\103\x45\123\x53") { $session = $response["\123\x65\163\x73\x69\157\x6e"]; $csrf = $response["\103\x73\162\x66"]; rechpay_query("\125\120\x44\101\x54\x45\x20\160\163\x61\x63\162\145\x64\x65\x6e\164\x69\x61\x6c\163\40\123\105\x54\40\163\164\x61\x74\x75\163\40\75\40\x27\x41\143\x74\x69\166\x65\47\x2c\x20\160\x73\141\137\163\x65\163\163\x69\x6f\156\x20\x3d\x20\x27{$session}\47\x2c\40\160\163\141\137\143\x73\x72\x66\40\75\40\47{$csrf}\47\40\x57\110\x45\x52\x45\40\x70\163\141\137\151\x64\x20\x3d\40\47{$id}\x27"); return json_encode(array("\x73\x74\x61\x74\x75\163" => "\123\x55\x43\103\x45\x53\123", "\155\145\x73\163\141\x67\145" => "\123\145\x73\163\151\157\156\x20\125\160\144\x61\x74\x65\x64", "\120\163\141\x42\141\154\141\156\143\145" => $response["\x50\163\141\x42\x61\x6c\141\156\143\145"])); } else { rechpay_query("\125\x50\104\101\124\x45\40\160\x73\x61\x63\x72\x65\144\145\x6e\x74\x69\141\x6c\163\40\x53\x45\x54\40\163\x74\x61\x74\165\163\x20\75\x20\47\111\x6e\101\x63\164\x69\166\x65\47\x2c\40\160\x73\141\137\x73\145\x73\163\x69\x6f\x6e\40\x3d\40\x27\47\x2c\40\x70\x73\x61\x5f\143\163\x72\x66\x20\x3d\40\47\x27\40\127\110\105\122\x45\x20\160\163\141\x5f\151\x64\40\75\40\47{$id}\47"); } } goto sN1pS; b2ZmP: function all_plans() { return rechpay_fetch_all(rechpay_query("\123\105\114\x45\103\x54\40\x2a\40\x46\x52\117\x4d\40\x60\x70\x6c\x61\156\163\x60\x20\x4f\122\x44\105\x52\40\102\x59\40\x60\160\x6c\x61\156\137\x69\144\x60\x20\104\105\123\103\40")); } goto DC_q7; MaMv_: function get_bharatpe_qrcode($authorization) { $bharatpe_business = get_bharatpe_business($authorization); $merchantId = $bharatpe_business["\144\x61\x74\x61"][0]["\x69\x64"]; $header = get_bharatpe_header(); $header[] = "\x63\157\x6f\153\151\x65\72\x20\142\x68\x61\162\x61\x74\160\145\x5f\x73\x65\163\x73\x69\x6f\x6e\75" . $authorization["\x62\150\141\x72\x61\164\x70\145\x5f\163\145\163\x73\x69\x6f\x6e"]; $header[] = "\164\157\153\145\x6e\72\40" . $authorization["\x61\x63\x63\x65\x73\x73\x54\157\153\145\156"]; $response = curl_request("\x47\105\124", "\150\x74\164\160\x73\72\57\57\x70\x61\171\155\x65\156\164\163\55\164\x65\163\163\x65\162\141\143\x74\56\x62\150\141\x72\141\164\160\x65\56\x69\x6e\x2f\x61\x70\x69\x2f\x6d\145\x72\x63\x68\141\156\x74\x2f\166\x31\x2f\x64\x6f\167\156\x6c\x6f\x61\x64\x51\162\77\155\x65\x72\x63\x68\x61\x6e\164\x49\x64\x3d{$merchantId}", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["\x62\x6f\144\171"], true); $output = array("\163\165\143\143\145\163\163" => false, "\155\x65\163\x73\x61\147\x65" => "\115\145\162\x63\x68\141\156\x74\40\123\145\x72\x76\x65\162\40\x69\163\x20\104\x6f\167\x6e", "\161\162\143\157\x64\145" => null); if ($body["\163\x74\141\x74\x75\x73"] == true && $body["\x64\x61\164\x61"]["\x71\162\x53\164\141\x74\x75\x73"] == true) { $output = array("\x73\x75\x63\143\x65\x73\163" => true, "\155\145\163\163\x61\x67\x65" => "\x44\141\164\141\x20\106\145\x74\143\150\x65\x64\x20\x73\165\x63\143\x65\163\x73\x66\165\x6c\x6c\171", "\x71\x72\143\157\144\145" => $body["\x64\141\164\141"]["\x75\162\154"]); } if (!empty($body["\x6d\x65\163\x73\x61\147\x65"])) { $output["\155\145\x73\163\141\147\x65"] = $body["\x6d\x65\163\x73\x61\147\x65"]; } return $output; } goto Jlo1s; g9vEu: function bharatpe_settlement_settings_url($accessToken) { $url = "\x68\x74\164\160\x73\x3a\x2f\x2f\142\150\x61\162\141\x74\160\x65\x2d\141\143\143\157\x75\x6e\164\56\x62\x68\141\162\141\164\x70\145\x2e\x69\x6e\x2f\43\x2f\163\x65\164\164\x6c\x65\x6d\x65\x6e\164\x2d\x73\x65\x74\x74\x69\156\147\163\77\166\x69\x73\x61\75{$accessToken}\x26\x73\x72\143\75\x4f\x54"; return $url; } goto IvUy2; VtWwX: function all_plan_data() { return rechpay_fetch_all(rechpay_query("\x53\105\x4c\105\103\x54\40\x2a\x20\106\122\x4f\115\40\x60\x70\x6c\x61\156\x73\140\40\127\x48\x45\x52\105\x20\163\x74\141\164\165\163\75\47\101\x63\164\x69\166\x65\47\x20\x4f\x52\x44\105\122\x20\102\x59\x20\x60\x61\155\x6f\x75\156\164\x60\40\101\123\103\xa\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\40")); } goto b2ZmP; dnCkq: function bharatpe_accounts($userAccount) { $sql = "\123\x45\114\x45\103\x54\40\x2a\40\106\x52\x4f\115\40\140\x62\x68\141\x72\141\164\160\x65\x60\40\x57\x48\105\122\x45\40\165\163\x65\x72\137\x69\144\x3d\x27" . $userAccount["\x75\163\x65\162\137\x69\144"] . "\47\40\x4f\x52\104\x45\x52\x20\x42\131\40\x60\x62\x68\x61\x72\x61\164\160\145\x5f\x69\144\140\x20\104\105\123\103\x20"; if ($userAccount["\162\157\154\x65"] == "\101\x64\155\151\156") { $sql = "\123\x45\x4c\x45\103\x54\x20\52\x20\106\122\117\x4d\40\140\142\x68\x61\x72\x61\164\160\145\140\x20\117\x52\x44\x45\x52\40\102\x59\x20\x60\x62\x68\141\162\x61\164\x70\x65\x5f\151\144\140\40\104\105\x53\103\x20"; } return rechpay_fetch_all(rechpay_query($sql)); } goto uKpWD; jhUeZ: function plan_data($plan_id) { return rechpay_fetch(rechpay_query("\123\x45\114\x45\x43\x54\x20\52\x20\106\122\x4f\x4d\x20\x60\x70\x6c\x61\156\x73\x60\40\x57\110\x45\122\105\40\x70\x6c\x61\156\137\151\x64\75\x27" . $plan_id . "\47\40")); } goto dOyCt; bCImN: function get_bharatpe_authorization() { $response = curl_request("\107\105\x54", "\x68\x74\164\160\163\x3a\57\57\x65\x6e\164\145\162\x70\162\151\x73\x65\x2e\x62\150\141\x72\141\x74\160\x65\56\151\x6e\x2f", array(), array(), true); $response = get_headers_from_curl_response($response); libxml_use_internal_errors(true); $dom = new DOMDocument(); $dom->validateOnParse = false; $dom->recover = true; $dom->formatOutput = false; $dom->loadHTML($response["\x62\157\x64\x79"]); libxml_clear_errors(); $xpath = new DOMXPath($dom); $col = $xpath->query("\x2f\x2f\151\156\x70\x75\164\x5b\x40\x6e\141\155\x65\75\x22\x5f\x74\157\153\145\x6e\x22\135"); foreach ($col as $node) { $csrftoken = $node->getAttribute("\x76\141\154\x75\x65"); } return array("\x63\163\x72\146\x74\157\x6b\x65\156" => $csrftoken, "\x62\x68\141\162\141\x74\x70\145\137\x73\x65\163\163\151\x6f\156" => $response["\x63\x6f\x6f\153\151\145\x73"]["\142\x68\141\x72\141\x74\160\145\x5f\x73\x65\163\163\151\x6f\x6e"]); } goto RtW4b; Jlo1s: function get_bharatpe_qrcode_data($authorization) { $header = get_bharatpe_header(); $header[] = "\164\x6f\x6b\x65\x6e\x3a\x20" . $authorization["\141\143\x63\x65\163\163\124\157\153\145\x6e"]; $response = curl_request("\107\105\x54", "\x68\x74\164\160\163\x3a\57\57\160\x61\x79\155\145\x6e\x74\x73\x2d\x74\x65\163\x73\x65\162\141\x63\164\x2e\142\x68\x61\162\x61\x74\x70\145\x2e\x69\x6e\x2f\x61\x70\151\x2f\x76\x31\57\x65\x78\164\x65\x72\156\x61\x6c\57\x6d\x65\162\x63\150\141\156\x74\57\x67\145\164\x2d\144\x69\147\x69\x74\141\x6c\55\161\x72\x2d\163\x74\x72\151\156\147\x3f\x73\153\x69\x70\123\x74\x6f\162\145\x54\x65\x72\155\151\156\x61\154\x4d\141\160\160\151\156\x67\x3d\164\x72\x75\x65", array(), $header, true); $response = get_headers_from_curl_response($response); $body = json_decode($response["\142\x6f\x64\x79"], true); $output = array("\x73\x75\x63\x63\145\163\x73" => false, "\155\145\x73\163\x61\x67\x65" => "\x4d\x65\x72\x63\150\x61\x6e\x74\40\123\145\162\166\x65\x72\x20\151\163\40\104\x6f\x77\x6e", "\161\x72\143\157\144\145" => null, "\166\160\x61" => null); if ($body["\x73\x74\x61\164\x75\x73"] == true) { $qrString = urlencode($body["\x64\x61\x74\141"]["\x71\162\x53\x74\x72\151\156\147"]); $image = "\150\164\164\x70\163\x3a\57\57\x63\150\141\162\164\x2e\x67\157\157\x67\154\145\141\x70\151\163\x2e\143\157\x6d\57\143\x68\141\162\164\77\x63\x68\x73\75\62\60\60\x78\62\60\60\46\143\x68\164\x3d\x71\x72\46\143\x68\154\75{$qrString}\x26\143\150\x6f\145\75\125\x54\106\55\x38\46\x63\150\x6c\144\x3d\114\x7c\x30"; parse_str(parse_url($body["\144\141\164\141"]["\161\x72\123\164\162\x69\x6e\x67"], PHP_URL_QUERY), $qrdata); $output = array("\163\x75\143\143\145\x73\163" => true, "\155\145\x73\163\x61\147\x65" => "\x44\x61\164\141\x20\x46\x65\164\143\150\145\x64\xa\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\x73\x75\143\143\145\163\x73\x66\x75\x6c\x6c\171", "\161\x72\x63\x6f\144\145" => imgbase64($image), "\161\x72\x64\141\x74\141" => $qrdata); } if (!empty($body["\155\x65\163\163\141\x67\x65"])) { $output["\x6d\x65\163\163\x61\147\x65"] = $body["\155\145\163\x73\x61\147\145"]; } return $output; } goto JF0gq; z4ayB: function all_user_account() { return rechpay_fetch_all(rechpay_query("\x53\x45\x4c\x45\103\124\40\52\x20\106\122\117\115\x20\140\x75\163\145\162\x61\143\x63\157\x75\x6e\164\140\x20\x4f\122\x44\x45\122\x20\x42\x59\x20\140\x75\163\x65\162\x5f\151\144\140\x20\x41\x53\x43\40")); } goto qHjZX; sN1pS: ?>

Function Calls

None

Variables

None

Stats

MD5 a4486d44dca608ada2a17de7f28c5cff
Eval Count 0
Decode Time 68 ms