added refund logic
This commit is contained in:
@@ -11,19 +11,16 @@
|
||||
{extends "$layout"}
|
||||
|
||||
{block name="content"}
|
||||
{if isset($hutko_response)}
|
||||
|
||||
{l s='You will be redirected to the website in a few seconds.' d='Modules.Hutko.Shop'}
|
||||
<div class="form-group">
|
||||
<form id="hutko_redirect" method="POST" action="{$hutko_url}" accept-charset="utf-8">
|
||||
<h5>{l s='Payment failure. ' d='Modules.Hutko.Shop'}</h5>
|
||||
<a class="btn btn-primary"
|
||||
href="{$link->getPageLink('order-history')}">{l s='Please try again' d='Modules.Hutko.Shop'}</a>
|
||||
|
||||
|
||||
{else}
|
||||
<h5>{l s='Order validation failure' d='Modules.Hutko.Shop'}</h5>
|
||||
<a class="btn btn-primary" href="{$link->getPageLink('order')}">{l s='Please try again' d='Modules.Hutko.Shop'}</a>
|
||||
{/if}
|
||||
|
||||
{foreach from=$hutko_inputs item=item key=key name=name}
|
||||
<input type="hidden" name="{$key|escape:'htmlall'}" value="{$item|escape:'htmlall'}" />
|
||||
{/foreach}
|
||||
<button class="btn btn-primary"
|
||||
type="submit">{l s='Go to payment (if auto redirect doesn`t work)' d='Modules.Hutko.Shop'}</button>
|
||||
</form>
|
||||
<div>
|
||||
<script>
|
||||
document.getElementById("hutko_redirect").submit();
|
||||
</script>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user