<?php
/* Smarty version 3.1.33, created on 2020-08-11 11:12:03
  from '/Users/codeworldweb.com/websites/uvocorp/content/modules/safepay/views/configure.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5f327d03448114_58411822',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '55a733a4010c8c356e05e0523af9a2cf24d1115d' => 
    array (
      0 => '/Users/codeworldweb.com/websites/uvocorp/content/modules/safepay/views/configure.tpl',
      1 => 1597140958,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5f327d03448114_58411822 (Smarty_Internal_Template $_smarty_tpl) {
?><!-- Safepay -->
<div class="tab-pane" id="safepay">
    <div class="alert alert-info">
        <div class="icon">
            <i class="fa fa-info-circle fa-2x"></i>
        </div>
        <div class="text">
            To start using Safepay, you'll need to create an account at <a target="_blank" href="https://www.getsafepay.com">Safepay</a><br>
            Check the documentation for more help
        </div>
    </div>

    <form class="js_ajax-forms col-md-9 form-horizontal" data-url="/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module_name']->value, ENT_QUOTES, 'UTF-8');?>
/updateSafepaySettings">
        <input type="hidden" name="site_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['safepayConfiguration']->value['SITE_ID'], ENT_QUOTES, 'UTF-8');?>
"/>
        <div class="form-group form-row">
            <label class="col-sm-3 control-label text-left">
                Safepay Enabled
            </label>
            <div class="col-sm-9">
                <label class="switch" for="safepay_enabled">
                    <input type="checkbox" name="safepay_enabled" id="safepay_enabled" <?php if ($_smarty_tpl->tpl_vars['safepayConfiguration']->value['SAFEPAY_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                    <span class="slider round"></span>
                </label>
                <span class="help-block">
                    Enable payments via Credit Card
                </span>
            </div>
        </div>
        <div class="form-group form-row">
            <label class="col-sm-3 control-label text-left">
                Default
            </label>
            <div class="col-sm-9">
                <label class="switch" for="default_method_safepay">
                    <input type="checkbox" name="default_method_enabled" id="default_method_safepay" <?php if ($_smarty_tpl->tpl_vars['safepayConfiguration']->value['PAYMENT_METHOD_DEFAULT'] == 'safepay') {?>checked="checked"<?php }?>>
                    <span class="slider round"></span>
                </label>
                <span class="help-block">
                    Make it the default payment method of the site
                </span>
            </div>
        </div>
        <div class="form-group form-row">
            <label class="col-sm-3 control-label text-left">
                Safepay Mode
            </label>
            <div class="col-sm-9">
                <div class="radio radio-primary radio-inline">
                    <input type="radio" name="safepay_mode" id="safepay_live" <?php if ($_smarty_tpl->tpl_vars['safepayConfiguration']->value['SAFEPAY_MODE'] == 'production') {?>checked<?php }?> value="production">
                    <label for="safepay_live">Live</label>
                </div>
                <div class="radio radio-primary radio-inline">
                    <input type="radio" name="safepay_mode" id="safepay_sandbox" <?php if ($_smarty_tpl->tpl_vars['safepayConfiguration']->value['SAFEPAY_MODE'] == 'sandbox') {?>checked<?php }?> value="sandbox">
                    <label for="safepay_sandbox">Test</label>
                </div>
            </div>
        </div>
        <div class="form-group form-row">
            <label class="col-sm-3 control-label text-left">
                Live Api Key
            </label>
            <div class="col-sm-9">
                <input class="form-control" type="text" name="safepay_live_client" id="safepay_live_client" maxlength="255" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['safepayConfiguration']->value['SAFEPAY_LIVE_KEY'], ENT_QUOTES, 'UTF-8');?>
">
            </div>
        </div>
        <div class="form-group form-row">
            <label class="col-sm-3 control-label text-left">
                Sandbox API Key
            </label>
            <div class="col-sm-9">
                <input class="form-control" type="text" name="safepay_sandbox_client" id="safepay_sandbox_client" maxlength="255" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['safepayConfiguration']->value['SAFEPAY_SANBOX_KEY'], ENT_QUOTES, 'UTF-8');?>
">
            </div>
        </div>

        <div class="form-group form-row">
            <div class="col-sm-9 offset-sm-3">
                <!-- success -->
                <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                <!-- success -->

                <!-- error -->
                <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                <!-- error -->

                <button type="submit" class="btn btn-info">Save Changes</button>
            </div>
        </div>
    </form>
</div>
<!-- Safepay --><?php }
}
