1<?
if (!defined(
"B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !==
true)
die();?><?
2if (
$_SERVER[
"REQUEST_METHOD"] ==
"POST" && isset($_GET[
"server_responce"]) && $_GET[
"server_responce"] ==
"Y" && !empty($_POST[
"cartId"]))
6 if ($bCorrect && !($arOrder = CSaleOrder::GetByID(intval($_POST[
"cartId"]))))
11 CSalePaySystemAction::InitParamArrays($arOrder, $arOrder[
"ID"]);
14 if ($strCallbackPassword ==
'' || $_POST[
"callbackPW"] != $strCallbackPassword)
18 if ($bCorrect && isset($_POST[
"testMode"]) && intval($_POST[
"testMode"]) > 0)
24 "PS_STATUS" => (($_POST[
"transStatus"]==
"Y") ?
"Y" :
"N"),
25 "PS_STATUS_CODE" => $_POST[
"transStatus"],
26 "PS_STATUS_DESCRIPTION" => $_POST[
"rawAuthMessage"],
27 "PS_STATUS_MESSAGE" => (($_POST[
"transStatus"]==
"Y") ? (
"The WorldPay ID for this transaction: ".$_POST[
"transId"].
", Time of this transaction: ".Date(
"r", $_POST[
"transTime"])) :
""),
28 "PS_SUM" => $_POST[
"authAmount"],
29 "PS_CURRENCY" => $_POST[
"authCurrency"],
30 "PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat(
"FULL", LANG))),
31 "USER_ID" => $arOrder[
"USER_ID"]
34 if ($arOrder[
"CURRENCY"]==$_POST[
"authCurrency"] && $arOrder[
"PRICE"]==$_POST[
"authAmount"])
36 CSaleOrder::PayOrder($arOrder[
"ID"],
"Y");
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"]