$strPAYEE_PURSE = CSalePaySystemAction::GetParamValue("ACC_NUMBER"); $SERVER_NAME_tmp = ""; if (defined("SITE_SERVER_NAME")) $SERVER_NAME_tmp = SITE_SERVER_NAME; if ($SERVER_NAME_tmp == '') $SERVER_NAME_tmp = COption::GetOptionString("main", "server_name", ""); $strPayPath = ""; $strPayPath .= "url=".urlencode("http://".$SERVER_NAME_tmp.(CSalePaySystemAction::GetParamValue("PATH_TO_RESULT"))."?ORDER_ID=".intval(CSalePaySystemAction::GetParamValue("ORDER_ID"))); $strPayPath .= "&purse=".$strPAYEE_PURSE; $strPayPath .= "&amount=".round(CSalePaySystemAction::GetParamValue("SHOULD_PAY"), 2); $strPayPath .= "&method=POST"; $strPayPath .= "&desc=Order_".intval(CSalePaySystemAction::GetParamValue("ORDER_ID")); $strPayPath .= "&mode=".CSalePaySystemAction::GetParamValue("TEST_MODE"); ?>