| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- {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">
- <div class="col-md-7 col-lg-8">
- {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-header bg-white">
- <h4 class="my-0">{lang key="makepayment"}</h4>
- </div>
- <div class="card-body">
- <div id="paymentGatewayInput">
- <div class="cc-payment-form">
- <div class="form-group row">
- <label class="col-sm-12 text-md-right control-label">
- {lang key='paymentmethod'}
- </label>
- <div class="col-sm-12">
- {include file="$template/payment/$cardOrBank/select.tpl"}
- </div>
- </div>
- {if !$hasRemoteInput}
- {include file="$template/payment/$cardOrBank/inputs.tpl"}
- {/if}
- </div>
- </div>
- <div id="btnSubmitContainer" class="form-group submit-container mb-0">
- <div class="form-actions mb-0 pb-0">
- <button type="submit" class="btn btn-primary btn-block" 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>
-
- {if $servedOverSsl}
- <div class="alert alert-warning small" role="alert">
- <i class="fas fa-lock"></i> {lang key='creditcardsecuritynotice'}
- </div>
- {/if}
- </div>
- <div class="col-md-5 col-lg-4">
- {include file="$template/payment/invoice-summary.tpl"}
- </div>
- </div>
- </form>
-
- <script>
- jQuery(document).ready(function() {
- jQuery('#inputCardCvv, #inputCardNumber').filter(':visible').first().focus();
- WHMCS.payment.event.gatewayInit({
- _source: 'invoice-pay',
- }, '{$gateway|addslashes}');
- jQuery('#frmPayment').on('submit.paymentjs', function(e) {
- WHMCS.payment.event.checkoutFormSubmit(
- {
- _source: 'invoice-pay',
- event: e,
- },
- '{$gateway|addslashes}',
- jQuery(this)
- );
- });
-
- jQuery('.existing-card, .existing-account').change('ifChecked', function (event) {
- $(this).closest(".card-item").toggleClass('selected', this.checked);
- });
- });
- </script>
-
- {/if}
|