forked from TheMaxium69/SolidServ-WHMCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoice-payment.tpl
73 lines (60 loc) · 2.85 KB
/
invoice-payment.tpl
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{if $showRemoteInput}
<div id="frmRemoteCardProcess" class="text-center">
{$remoteInput}
<iframe name="ccframe" class="auth3d-area" width="90%" height="600" scrolling="auto" src="about:blank"></iframe>
</div>
<script>
jQuery("#frmRemoteCardProcess").find("form:first").attr('target', 'ccframe');
setTimeout("autoSubmitFormByContainer('frmRemoteCardProcess')", 1000);
</script>
{else}
{include file="$template/payment/$cardOrBank/validate.tpl"}
<form id="frmPayment" method="post" action="{$submitLocation}" role="form">
<input type="hidden" name="invoiceid" value="{$invoiceid}" />
<div class="row cc-payment-form">
<div class="col-md-7">
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage}
{/if}
<div class="alert alert-danger text-center gateway-errors w-hidden"></div>
<div class="card">
<div class="card-body">
<h3 class="card-title">{lang key="makepayment"}</h3>
<div class="form-group row">
<label class="col-sm-4 text-md-right control-label">
{lang key='paymentmethod'}
</label>
<div class="col-sm-8">
{include file="$template/payment/$cardOrBank/select.tpl"}
</div>
</div>
{if !$hasRemoteInput}
{include file="$template/payment/$cardOrBank/inputs.tpl"}
{/if}
<div id="btnSubmitContainer" class="form-group submit-container">
<div class="text-center">
<button type="submit" class="btn btn-primary" id="btnSubmit" value="{lang key='submitpayment'}">
<span class="pay-text">{lang key='submitpayment'}</span>
<span class="click-text w-hidden">{lang key='pleasewait'}</span>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-5">
{include file="$template/payment/invoice-summary.tpl"}
</div>
</div>
{if $servedOverSsl}
<div class="alert alert-warning" role="alert">
<i class="fas fa-lock"></i> {lang key='creditcardsecuritynotice'}
</div>
{/if}
</form>
<script>
jQuery(document).ready(function() {
jQuery('#inputCardCvv, #inputCardNumber').filter(':visible').first().focus();
});
</script>
{/if}