<?php
if(!defined('WEBUPPER')){ exit; }
$keys_in_array = explode('||', $keys_in);
$m_shop = $keys_in_array[0];
$m_key = $keys_in_array[1];
$m_orderid = $batch;
$m_amount = number_format($sum, 2, '.', '');
$m_curr = 'RUB';
$m_desc = base64_encode($comment);
$arHash = array(
$m_shop,
$m_orderid,
$m_amount,
$m_curr,
$m_desc,
$m_key
);
$sign = strtoupper(hash('sha256', implode(':', $arHash)));
echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Переход к оплате</title>
<style>
.holder { position: absolute; top: 50%; left: 50%; } .global { height: 200px; width: 300px; margin-top:-100px; margin-left:-150px; } .gear { top: 0 !important; height: 100px; width: 100px; margin-left:-50px; } .label { font-family:Arial,Helvetica,Sans-serif; font-size:18px; width: 170px; top: 60% !important; margin-left:-75px; }
</style>
</head>
<body>
<div class="holder global">
<div class="holder gear">
<img src="/wu-static/img/webupper_load.gif" alt="Оплата" />
</div>
<span class="holder label">Переход к оплате...</span>
</div>
<form id="wu-send" method="GET" action="https://payeer.com/merchant/" style="display:none">
<input type="hidden" name="m_shop" value="'.$m_shop.'">
<input type="hidden" name="m_orderid" value="'.$m_orderid.'">
<input type="hidden" name="m_amount" value="'.$m_amount.'">
<input type="hidden" name="m_curr" value="'.$m_curr.'">
<input type="hidden" name="m_desc" value="'.$m_desc.'">
<input type="hidden" name="m_sign" value="'.$sign.'">
<input type="submit" name="m_process" value="send" />
</form>
<script type="text/javascript">
document.forms["wu-send"].submit();
</script>
</body>
</html>
';
?>