<{* Template: payment.html Description: Author: 1260 A/S, @1260-digital Since: 2022-09-01 *}> <{include file="partials/checkout.start.html"}>
<{if $order}>

<{t x=$order->getWebshopOrderId()}>Betaling for ordre #{x}<{/t}>

<{else}> <{t}>Payment<{/t}> <{/if}>
<{if $webshop->getStatus() == "demo"}>

<{t}>The shop is in demo mode, so any payments will go through as paid.<{/t}>

<{if $order}>
<{else}> <{/if}> <{if $order}>

<{t x=$order->getAmountToCharge()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".") y=$order->getCurrency()}>You are about to pay {x} {y}<{/t}>


<{else}>

<{t x=$total_price|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".") y=$webshop->getCurrency()}>You are about to pay {x} {y}<{/t}>


<{/if}>
<{else}> <{if $payment_gateway_type == "payson"}> <{$payment_html}> <{elseif $payment_gateway_type == "paypal_plus"}>
<{t}>Please wait ...<{/t}>
<{elseif $payment_gateway_type == "other"}>
<{if $order}> <{assign var="gateways" value=$webshop->getPaymentGateways()}> <{section name="i" loop=$gateways}> <{if $order->getPaymentGatewayId() == $gateways[i]->getPaymentGatewayId()}>

<{t x=$gateways[i]->getName()}>You have chosen {x} as your payment method.<{/t}>

<{t x=$order->getAmountToCharge()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".") y=$order->getCurrency()}>The order total is: {x} {y}<{/t}>

<{if $order->getPrepaidAmount() > 0}>

<{t x=$order->getPrepaidAmount()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".") y=$order->getCurrency()}>Of this, {x} {y} has been prepaid by offsetting your returned item.<{/t}>

<{/if}> <{assign var="payment_info" value=$gateways[i]->getHtmlField('payment_info')}> <{if $payment_info }> <{$payment_info}> <{/if}> <{/if}> <{/section}>

<{t}>Got questions?<{/t}>

<{t}>Write your question here, and we will get back to you by email as soon as possible:<{/t}>


', email: '<{$order->getEmail()|escape:"javascript"|escape}>', question: ''}">
<{include file="components/label.html" required="true" text="Name"|t for="name" xclass="{'label--is-floating': name && name.length > 0 }" }> <{include file="components/input.html" type="text" autocomplete="true" name="name" required="true" placeholder="Name"|t xclass="{'input--has-value': name && name.length > 0 }" xmodel="name" xvalue="name" xref="name" }>
<{include file="components/label.html" for="question" text="Message"|t required="true" xclass="{'label--is-floating': question && question.length > 0 }" }> <{include file="components/textarea.html" name="question" type="text" placeholder="Message"|t inputmode="text" autocomplete="name" required="true" xclass="{'input--has-value': question && question.length > 0 }" xmodel="question" xvalue="question" xref="question" }>
<{include file="components/button.html" class="btn--mt4" size="lg" text="Submit"|t type="submit" variant="primary"}>
<{/if}> <{elseif $payment_gateway_type == "epay"}>
<{elseif $payment_gateway_type == "epay2"}>
<{elseif $payment_gateway_type == "paypal"}>
<{elseif $payment_gateway_type == "easy"}> <{if $checkout_key && $payment_id}>
<{else}> <{t}>Something went wrong<{/t}> <{/if}> <{/if}> <{/if}>
<{include file="partials/checkout.end.html"}>