Файл: plugins/payment/tpl/qiwi.tpl.php
Строк: 49
<?
// Подпись формы платежа
$hash = sha1($pay_id.$pay_cost.$SECRET_KEY);
// Подпись с данными
$sign = base64_encode($pay_id.':'.$hash);
?>
<form id="payment" name="payment" action="<?= text($_SERVER['REQUEST_URI'])?>" method="POST">
<?= __('Номер телефона')?>: (<?= __('Например')?> +79251234567)
<input type="text" name="to" value="<?= (isset($_SESSION['i_phone']) ? text($_SESSION['i_phone']) : '+7')?>"><br />
<input type="hidden" name="shop_qiwi" value="1">
<input type="hidden" name="from" value="<?= $SHOP_ID?>">
<input type="hidden" name="currency" value="RUB">
<input type="hidden" name="comm" value="<?= $pay_desc?>">
<input type="hidden" name="txn_id" value="<?= $sign?>">
<input type="hidden" name="lifetime" value="<?= date("Y-m-dTH:i:s", time()+(60 * 60 * 24))?>">
<input type="hidden" name="successUrl" value="http://<?= $_SERVER['HTTP_HOST']?>/payment?id=<?= $pay_id?>&identifier=<?= $paytype?>&request=success">
<input type="hidden" name="failUrl" value="http://<?= $_SERVER['HTTP_HOST']?>/payment?id=<?= $pay_id?>&identifier=<?= $paytype?>&request=fail">
<input type="hidden" name="summ" value="<?= $pay_cost?>">
<button type="submit" class="btn btn-success"><?= __('Оплатить')?> <?= $pay_cost?> руб.</button>
</form>