<?php
if(!defined('WEBUPPER')){ exit; }
$keys_in_array = explode('||', $keys_in);
$y_purse = $keys_in_array[0];

$sum = number_format($sum, 2, '.', '');

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" action="https://money.yandex.ru/quickpay/confirm.xml" method="post">
<input type="hidden" name="label" value="'.$batch.'">
<input type="hidden" name="receiver" value="'.$y_purse.'">
<input type="hidden" name="sum" value="'.$sum.'">
<input type="hidden" name="quickpay-form" value="shop">
<input type="hidden" name="paymentType" value="PC">
<input type="hidden" name="formcomment" value="'.$comment.'">
<input type="hidden" name="short-dest" value="'.$comment.'">
<input type="hidden" name="targets" value="'.$comment.'">
</form>
<script type="text/javascript">
document.forms["wu-send"].submit();
</script>
</body>
</html>
';
?>