<?php
/* Smarty version 3.1.48, created on 2025-03-31 22:45:49
  from '/home/linq/public_html/clients/templates/six/invoice-payment.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.48',
  'unifunc' => 'content_67eb1b1dc1fb14_38386249',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'f957c0b73267449f697b1739c0dc13b29f06f668' => 
    array (
      0 => '/home/linq/public_html/clients/templates/six/invoice-payment.tpl',
      1 => 1727738244,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_67eb1b1dc1fb14_38386249 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['showRemoteInput']->value) {?>
    <div id="frmRemoteCardProcess" class="text-center" align="center">
        <?php echo $_smarty_tpl->tpl_vars['remoteInput']->value;?>

        <iframe name="ccframe" class="auth3d-area" width="90%" height="600" scrolling="auto" src="about:blank"></iframe>
    </div>

    <?php echo '<script'; ?>
 language="javascript">
        jQuery("#frmRemoteCardProcess").find("form:first").attr('target', 'ccframe');
        setTimeout("autoSubmitFormByContainer('frmRemoteCardProcess')", 1000);
    <?php echo '</script'; ?>
>
<?php } else { ?>
    <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/payment/".((string)$_smarty_tpl->tpl_vars['cardOrBank']->value)."/validate.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
    <form id="frmPayment" method="post" action="<?php echo $_smarty_tpl->tpl_vars['submitLocation']->value;?>
" class="form-horizontal" role="form">
        <input type="hidden" name="invoiceid" value="<?php echo $_smarty_tpl->tpl_vars['invoiceid']->value;?>
" />

        <div class="row">
            <div class="col-md-7">

                <?php if ($_smarty_tpl->tpl_vars['errormessage']->value) {?>
                    <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"error",'errorshtml'=>$_smarty_tpl->tpl_vars['errormessage']->value), 0, true);
?>
                <?php }?>

                <div class="alert alert-danger text-center gateway-errors w-hidden"></div>

                <div id="paymentGatewayInput">
                    <div class="cc-payment-form">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">
                                <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'paymentmethod'),$_smarty_tpl ) );?>

                            </label>
                            <div class="col-sm-8">
                                <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/payment/".((string)$_smarty_tpl->tpl_vars['cardOrBank']->value)."/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
                            </div>
                        </div>

                        <?php if (!$_smarty_tpl->tpl_vars['hasRemoteInput']->value) {?>
                            <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/payment/".((string)$_smarty_tpl->tpl_vars['cardOrBank']->value)."/inputs.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
                        <?php }?>
                    </div>
                </div>

                <div id="btnSubmitContainer" class="form-group submit-container">
                    <div class="text-center">
                        <button type="submit" class="btn btn-primary btn-lg margin-top-5" id="btnSubmit" value="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'submitpayment'),$_smarty_tpl ) );?>
">
                            <span class="pay-text"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'submitpayment'),$_smarty_tpl ) );?>
</span>
                            <span class="click-text w-hidden"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'pleasewait'),$_smarty_tpl ) );?>
</span>
                        </button>
                    </div>
                </div>

            </div>
            <div class="col-md-5">
                <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/payment/invoice-summary.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
            </div>
        </div>

        <?php if ($_smarty_tpl->tpl_vars['servedOverSsl']->value) {?>
            <div class="alert alert-warning" role="alert">
                <i class="fas fa-lock"></i> &nbsp; <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'creditcardsecuritynotice'),$_smarty_tpl ) );?>

            </div>
        <?php }?>

    </form>

    <?php echo '<script'; ?>
>
    jQuery(document).ready(function() {
        jQuery('#inputCardCvv, #inputCardNumber').filter(':visible').first().focus();
        WHMCS.payment.event.gatewayInit({
            _source: 'invoice-pay',
        }, '<?php echo addslashes($_smarty_tpl->tpl_vars['gateway']->value);?>
');
        jQuery('#frmPayment').on('submit.paymentjs', function(e) {
            WHMCS.payment.event.checkoutFormSubmit(
                {
                    _source: 'invoice-pay',
                    event: e,
                },
                '<?php echo addslashes($_smarty_tpl->tpl_vars['gateway']->value);?>
',
                jQuery(this)
            );
        });
    });
    <?php echo '</script'; ?>
>
<?php }
}
}
