83 lines
3.2 KiB
Smarty
83 lines
3.2 KiB
Smarty
{*
|
|
* @author PayU
|
|
* @copyright Copyright (c) 2014-2018 PayU
|
|
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
|
*
|
|
* http://www.payu.com
|
|
*}
|
|
{capture name=path}{l s='Pay with PayU' mod='payu'}{/capture}
|
|
|
|
<div class="clearfix">
|
|
<h2 id="payuAmountInfo">{$payuOrderInfo}: <strong>
|
|
{if $currency}{convertPriceWithCurrency price=$total currency=$orderCurrency}{else}{convertPrice price=$total}{/if}
|
|
</strong>
|
|
{l s='(tax incl.)' mod='payu'}
|
|
</h2>
|
|
<img src="{$image}" id="payuLogo">
|
|
</div>
|
|
|
|
{if $payuErrors|@count}
|
|
<div class="alert alert-warning">
|
|
{foreach $payuErrors as $error}
|
|
{$error}<br>
|
|
{/foreach}
|
|
</div>
|
|
{/if}
|
|
|
|
<form action="{$payuPayAction|escape:'html'}" method="post" id="payuForm">
|
|
<input type="hidden" name="payuPay" value="1" />
|
|
|
|
{if isset($payMethods.error)}
|
|
<h4 class="error">{l s='Error has occurred' mod='payu'}: {$payMethods.error}</h4>
|
|
{else}
|
|
<div id="payMethods">
|
|
{foreach $payMethods.payByLinks as $payByLink}
|
|
<div id="payMethodContainer-{$payByLink->value}" class="payMethod {if $payByLink->status != 'ENABLED'}payMethodDisable{else}payMethodEnable{/if} {if $payMethod == $payByLink->value}payMethodActive{/if}" {if $payByLink->value == 'jp'}style="display: none" {/if}>
|
|
{if $payByLink->status == 'ENABLED'}
|
|
<input id="payMethod-{$payByLink->value}" type="radio" value="{$payByLink->value}" name="payMethod" {if $payMethod == $payByLink->value}checked="checked"{/if}>
|
|
{/if}
|
|
<label for="payMethod-{$payByLink->value}" class="payMethodLabel" data-autosubmit="{$payByClick}">
|
|
<div class="payMethodImage"><img src="{$payByLink->brandImageUrl}" alt="{$payByLink->name}"></div>
|
|
{$payByLink->name}
|
|
</label>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
|
|
{include file="$conditionTemplate"}
|
|
|
|
{/if}
|
|
<p class="cart_navigation clearfix" id="cart_navigation">
|
|
{if !$retryPayment}
|
|
<a class="button-exclusive btn btn-default button_large" href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html':'UTF-8'}">
|
|
<i class="icon-chevron-left"></i>{l s='Other payment methods' mod='payu'}
|
|
</a>
|
|
{/if}
|
|
{if !isset($payMethods.error)}
|
|
<button class="button btn btn-default button-medium" type="submit">
|
|
<span>{if !$retryPayment}{l s='I confirm my order' mod='payu'}{else}{l s='Pay' mod='payu'}{/if}<i class="icon-chevron-right right"></i></span>
|
|
</button>
|
|
{/if}
|
|
</p>
|
|
</form>
|
|
|
|
<script>
|
|
(function () {
|
|
var applePayAvailable;
|
|
|
|
try {
|
|
applePayAvailable = window.ApplePaySession && window.ApplePaySession.canMakePayments();
|
|
} catch (e) {
|
|
applePayAvailable = false;
|
|
}
|
|
|
|
var applePayContainer = document.getElementById('payMethodContainer-jp');
|
|
|
|
if (applePayAvailable) {
|
|
applePayContainer.style.display = 'block';
|
|
} else {
|
|
applePayContainer.parentNode.removeChild(applePayContainer);
|
|
}
|
|
})();
|
|
</script>
|