update
This commit is contained in:
parent
9a2529bc4d
commit
f63ef1dcc0
6 changed files with 96 additions and 0 deletions
20
wotstats/templates/pages/wallet/fail.html
Normal file
20
wotstats/templates/pages/wallet/fail.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<h1>Что-то пошло не так</h1>
|
||||
<p>
|
||||
Во время оплаты произошла ошибка, попробуйте ещё раз.
|
||||
В случае повторения ошибки обратитесь в <a href="mailto:support@procdn.ru">поддержку</a>.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="{{ url_for('account.billing') }}">Биллинг</a></li>
|
||||
{% if g.settings.get('SERVICE_CONTAINERS_ENABLE', "0") == "1" %}
|
||||
<li><a href="{{ url_for('containers.index') }}">Контейнеры</a></li>
|
||||
{% endif %}
|
||||
{% if g.settings.get('SERVICE_VMS_ENABLE', '0') == '1' %}
|
||||
<li><a href="{{ url_for('vms.index') }}">Виртуальные машины</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
31
wotstats/templates/pages/wallet/robokassa/process.html
Normal file
31
wotstats/templates/pages/wallet/robokassa/process.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
{% if g.settings['PAY_ROBOKASSA_MODE'] == 0 or g.settings['PAY_ROBOKASSA_MODE'] == "0" %}
|
||||
<form method="post" action="http://test.robokassa.ru/Index.aspx">
|
||||
{% else %}
|
||||
<form method="post" action="https://merchant.roboxchange.com/Index.aspx" name="robokassa" id="robokassa">
|
||||
{% endif %}
|
||||
<input type="hidden" name="MrchLogin" value="{{ payment['login'] }}" />
|
||||
<input type="hidden" name="OutSum" value="{{ payment['amount'] }}" />
|
||||
<input type="hidden" name="InvId" value="{{ payment['payment_id'] }}" />
|
||||
<input type="hidden" name="Desc" value="Пополнение баланса" />
|
||||
<input type="hidden" name="SignatureValue" value="{{ payment['signature'] }}" />
|
||||
<input type="submit" value="Оплатить" />
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
window.onload=function(){
|
||||
var auto = setTimeout(function(){ autoRefresh(); }, 100);
|
||||
function submitform(){
|
||||
document.forms["robokassa"].submit();
|
||||
}
|
||||
function autoRefresh(){
|
||||
clearTimeout(auto);
|
||||
auto = setTimeout(function(){ submitform(); autoRefresh(); }, 10000);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
0
wotstats/templates/pages/wallet/robokassa/result.html
Normal file
0
wotstats/templates/pages/wallet/robokassa/result.html
Normal file
8
wotstats/templates/pages/wallet/robokassa/success.html
Normal file
8
wotstats/templates/pages/wallet/robokassa/success.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<h1>Успешная оплата</h1>
|
||||
<p>Баланс успешно пополнен.</p>
|
||||
<p><a href="{{ url_for("account.billing") }}">В личный кабинет</a></p>
|
||||
</body>
|
||||
</html>
|
16
wotstats/templates/pages/wallet/robokassa_proccess.html
Normal file
16
wotstats/templates/pages/wallet/robokassa_proccess.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends 'layouts/main.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Кошелёк</h2>
|
||||
<p>Баланс: {{ balance }} рублей</p>
|
||||
<h2>Пополнить баланс</h2>
|
||||
<form action="{{ url_for('wallet.robokassa', action='proccess') }}" method="post" class="mui-form">
|
||||
<div class="mui-textfield">
|
||||
<input type='text' name="amount" value="" placeholder="100" />
|
||||
</div>
|
||||
<input type='submit' value="pay" class="mui-btn mui-btn--raised" />
|
||||
</form>
|
||||
|
||||
<h2>История</h2>
|
||||
|
||||
{% endblock %}
|
21
wotstats/templates/pages/wallet/success.html
Normal file
21
wotstats/templates/pages/wallet/success.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Успешное пополнение счёта</title>
|
||||
</head>
|
||||
<body>
|
||||
Спасибо!
|
||||
|
||||
Личный счёт успешно пополнен.
|
||||
<ul>
|
||||
<li><a href="{{ url_for('bills.index') }}">Биллинг</a></li>
|
||||
{% if g.settings.get('SERVICE_CONTAINERS_ENABLE', "0") == "1" %}
|
||||
<li><a href="{{ url_for('containers.index') }}">Контейнеры</a></li>
|
||||
{% endif %}
|
||||
{% if g.settings.get('SERVICE_VMS_ENABLE', '0') == '1' %}
|
||||
<li><a href="{{ url_for('vms.index') }}">Виртуальные машины</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
Reference in a new issue