1<?
if (!defined(
"B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !==
true)
die();?>
3if (
$_SERVER[
"REQUEST_METHOD"] ==
"POST")
10 if(!($arOrder = CSaleOrder::GetByID(
$orderId)))
13 $techMessage =
GetMessage(
"SALE_RBK_REC_ORDER");
17 CSalePaySystemAction::InitParamArrays($arOrder, $arOrder[
"ID"]);
31 $eshopId = trim($_POST[
"eshopId"]);
32 $paymentId = trim($_POST[
"paymentId"]);
33 $serviceName = trim($_POST[
"serviceName"]);
34 $eshopAccount = trim($_POST[
"eshopAccount"]);
35 $recipientAmount = trim($_POST[
"recipientAmount"]);
36 $recipientCurrency = trim($_POST[
"recipientCurrency"]);
37 $paymentStatus = trim($_POST[
"paymentStatus"]);
39 $userEmail = trim($_POST[
"userEmail"]);
40 $paymentData = trim($_POST[
"paymentData"]);
41 $hash = trim($_POST[
"hash"]);
42 $paymentAmount = trim($_POST[
"paymentAmount"]);
43 $paymentCurrency = trim($_POST[
"paymentCurrency"]);
45 if($eshopId == $eshopIdB)
47 $checkB = md5($eshopId.
"::".
$orderId.
"::".$serviceName.
"::".$eshopAccount.
"::".$recipientAmount.
"::".$recipientCurrency.
"::".$paymentStatus.
"::".
$userName.
"::".$userEmail.
"::".$paymentData.
"::".$secretKeyB);
51 if($paymentStatus == 5)
55 if($arOrder[
"PAYED"] !=
"Y" && $statusPay ==
"Y")
56 CSaleOrder::PayOrder($arOrder[
"ID"],
"Y");
58 $techMessage =
GetMessage(
"SALE_RBK_PROCESS_OK");
61 $techMessage =
GetMessage(
"SALE_RBK_REC_SUMM");
63 elseif($paymentStatus == 3)
64 $techMessage =
GetMessage(
"SALE_RBK_PROCESS_PAY");
66 $techMessage =
GetMessage(
"SALE_RBK_REC_TRANS");
69 $techMessage =
GetMessage(
"SALE_RBK_REC_SIGN");
72 $techMessage =
GetMessage(
"SALE_RBK_REC_PRODUCT");
74 $strPS_STATUS_DESCRIPTION =
GetMessage('SALE_RBK_CUSTOMER').
": ".
$userName.
" (".$userEmail.
"); ";
75 $strPS_STATUS_DESCRIPTION .=
GetMessage('SALE_RBK_PAYMENT').
": ".$paymentId.
"; ";
76 $strPS_STATUS_DESCRIPTION .=
GetMessage('SALE_RBK_DATE').
": ".$paymentData.
";";
80 "PS_STATUS_CODE" => $paymentStatus,
81 "PS_STATUS_DESCRIPTION" => $strPS_STATUS_DESCRIPTION,
82 "PS_STATUS_MESSAGE" => $techMessage,
83 "PS_SUM" => $recipientAmount,
84 "PS_CURRENCY" => $recipientCurrency,
85 "PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat(
"FULL", LANG))),
static GetParamValue($key, $defaultValue=null)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$_SERVER["DOCUMENT_ROOT"]
if(preg_match('/^ else[a-z0-9_]{2}$/i', $siteID)===1)
GetMessage($name, $aReplace=null)
GetLangFileName($before, $after, $lang=false)
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)