-
Notifications
You must be signed in to change notification settings - Fork 7
/
yandexmoney.html
34 lines (33 loc) · 3.06 KB
/
yandexmoney.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{if $GLOBS.currency.code neq 'RUR' && $GLOBS.currency.code neq 'RUB'}
{assign var=summ value=ceil($summ/$GLOBS.allcurrencies.RUB.course)}
{/if}
<form method="POST" action="https://money.yandex.ru/quickpay/confirm.xml" class="payment-form pull-left">
<input name="receiver" type="hidden" value="{$GLOBS.merchants.yandexmoney.uid}">
<input name="label" type="hidden" value="{$order_id}:{$order_content.email}">
<input name="paymentType" type="hidden" value="PC">
<input name="writable-targets" type="hidden" value="false">
<input name="writable-sum" type="hidden" value="false">
<input name="comment-needed" type="hidden" value="false">
<input name="quickpay-form" type="hidden" value="shop">
<input type="hidden" name="targets" value="{$GLOBS.merchants.yandexmoney.serviceName|default:'Оплата заказа №'}{$order_id}">
<input name="formcomment" type="hidden" value="{$GLOBS.SITENAME|escape}: {$GLOBS.merchants.yandexmoney.serviceName|default:'Оплата заказа №'}{$order_id}">
<input name="short-dest" type="hidden" value="{$GLOBS.SITENAME|escape}: {$GLOBS.merchants.yandexmoney.serviceName|default:'Оплата заказа №'}{$order_id}">
<input data-type="number" type="hidden" name="sum" value="{if $summ*0.005<0.1}{$summ+0.1}{else}{($summ*1.005)|replace:',':'.'}{/if}">
<button type="submit" name="submit-button" class="btn btn-large" title="{$GLOBS.merchants.yandexmoney.btn|default:'Оплатить через Яндекс.Деньги'}" rel="tooltip"><img src="/media0/img/merchants/Yandex.png" alt="Яндекс.Деньги" width="150" /></button>
</form>
{if $GLOBS.merchants.yandexmoney.bcard}
<form method="POST" action="https://money.yandex.ru/quickpay/confirm.xml" class="payment-form pull-left">
<input name="receiver" type="hidden" value="{$GLOBS.merchants.yandexmoney.uid}">
<input name="label" type="hidden" value="{$order_id}:{$order_content.email}">
<input name="paymentType" type="hidden" value="AC">
<input name="writable-targets" type="hidden" value="false">
<input name="writable-sum" type="hidden" value="false">
<input name="comment-needed" type="hidden" value="false">
<input name="quickpay-form" type="hidden" value="shop">
<input type="hidden" name="targets" value="{$GLOBS.merchants.yandexmoney.serviceName|default:'Оплата заказа №'}{$order_id}">
<input name="formcomment" type="hidden" value="{$GLOBS.SITENAME|escape}: {$GLOBS.merchants.yandexmoney.serviceName|default:'Оплата заказа №'}{$order_id}">
<input name="short-dest" type="hidden" value="{$GLOBS.SITENAME|escape}: {$GLOBS.merchants.yandexmoney.serviceName|default:'Оплата заказа №'}{$order_id}">
<input data-type="number" type="hidden" name="sum" value="{($summ*1.02041)|string_format:"%.2f"|replace:',':'.'}">
<button type="submit" name="submit-button" class="btn btn-large" title="Оплатить через Visa или MasterCard" rel="tooltip"><img src="/media0/img/merchants/VisaMasterYandex.png" alt="Visa и MasterCard через Яндекс.Деньги" width="150" /></button>
</form>
{/if}