1<?
if (!defined(
"B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !==
true)
die();?><?
2define(
"NO_KEEP_STATISTIC",
true);
3define(
"NOT_CHECK_PERMISSIONS",
true);
4require(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/prolog_before.php");
6if (CModule::IncludeModule(
"sale"))
8 if (
$_SERVER[
"REQUEST_METHOD"] ==
"POST"
9 && isset($_GET[
"server_responce"])
10 && $_GET[
"server_responce"] ==
"Y"
11 && !empty($_POST[
"cartId"]))
15 if ($bCorrect && !($arOrder = CSaleOrder::GetByID(IntVal($_POST[
"cartId"]))))
22 CSalePaySystemAction::InitParamArrays($arOrder);
25 if (strlen($strCallbackPassword) > 0 && $_POST[
"callbackPW"] != $strCallbackPassword)
31 if ($bCorrect && isset($_POST[
"testMode"]) && IntVal($_POST[
"testMode"]) > 0)
39 "PS_STATUS" => (($_POST[
"transStatus"]==
"Y") ?
"Y" :
"N"),
40 "PS_STATUS_CODE" => $_POST[
"transStatus"],
41 "PS_STATUS_DESCRIPTION" => $_POST[
"rawAuthMessage"],
42 "PS_STATUS_MESSAGE" => (($_POST[
"transStatus"]==
"Y") ? (
"The WorldPay ID for this transaction: ".$_POST[
"transId"].
", Time of this transaction: ".Date(
"r", $_POST[
"transTime"])) :
""),
43 "PS_SUM" => $_POST[
"authAmount"],
44 "PS_CURRENCY" => $_POST[
"authCurrency"],
45 "PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat(
"FULL", LANG))),
46 "USER_ID" => $arOrder[
"USER_ID"]
49 if ($arOrder[
"CURRENCY"]==$_POST[
"authCurrency"] && $arOrder[
"PRICE"]==$_POST[
"authAmount"])
52 $arFields[
"DATE_PAYED"] = Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat(
"FULL", LANG)));
61require(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/epilog_after.php");
static GetParamValue($key, $defaultValue=null)
static Update($ID, $arFields, $bDateUpdate=true)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$_SERVER["DOCUMENT_ROOT"]