<?php
/* Smarty version 3.1.33, created on 2022-10-31 22:50:16
  from '/home/responsi/writers19.com/content/modules/paypal/views/configure.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_636051281d4d44_41275311',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '2e5520f6aaf55ad3dbcfe833c14db3082852f258' => 
    array (
      0 => '/home/responsi/writers19.com/content/modules/paypal/views/configure.tpl',
      1 => 1656689816,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_636051281d4d44_41275311 (Smarty_Internal_Template $_smarty_tpl) {
?><!-- PayPal -->
<div class="tab-pane" id="paypal">
    <div class="alert alert-info">
        <div class="icon">
            <i class="fa fa-info-circle fa-2x"></i>
        </div>
        <div class="text">
            To start using Paypal, you'll need to create an account at <a target="_blank" href="https://developer.paypal.com/">Paypal</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');?>
/updatePayPalSettings">
        <input type="hidden" name="site_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paypalConfiguration']->value['SITE_ID'], ENT_QUOTES, 'UTF-8');?>
"/>
        <div class="form-group form-row">
            <label class="col-sm-3 control-label text-left">
                PayPal Enabled
            </label>
            <div class="col-sm-9">
                <label class="switch" for="paypal_enabled">
                    <input type="checkbox" name="paypal_enabled" id="paypal_enabled" <?php if ($_smarty_tpl->tpl_vars['paypalConfiguration']->value['PAYPAL_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                    <span class="slider round"></span>
                </label>
                <span class="help-block">
                    Enable payments via Paypal
                </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_paypal">
                    <input type="checkbox" name="default_method_enabled" id="default_method_paypal" <?php if ($_smarty_tpl->tpl_vars['paypalConfiguration']->value['PAYMENT_METHOD_DEFAULT'] == 'paypal') {?>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">
                PayPal Mode
            </label>
            <div class="col-sm-9">
                <div class="radio radio-primary radio-inline">
                    <input type="radio" name="paypal_mode" id="paypal_live" <?php if ($_smarty_tpl->tpl_vars['paypalConfiguration']->value['PAYPAL_MODE'] == 'live') {?>checked<?php }?> value="live">
                    <label for="paypal_live">Live</label>
                </div>
                <div class="radio radio-primary radio-inline">
                    <input type="radio" name="paypal_mode" id="paypal_sandbox" <?php if ($_smarty_tpl->tpl_vars['paypalConfiguration']->value['PAYPAL_MODE'] == 'sandbox') {?>checked<?php }?> value="sandbox">
                    <label for="paypal_sandbox">Sandbox</label>    
                </div>
            </div>
        </div>
        <div class="form-group form-row">
            <label class="col-sm-3 control-label text-left">
                PayPal Client ID
            </label>
            <div class="col-sm-9">
                <input class="form-control" type="text" name="paypal_client_id" id="paypal_client_id" maxlength="255" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paypalConfiguration']->value['PAYPAL_CLIENT_ID'], ENT_QUOTES, 'UTF-8');?>
">
            </div>
        </div>
        <div class="form-group form-row">
            <label class="col-sm-3 control-label text-left">
                PayPal Secret Key
            </label>
            <div class="col-sm-9">
                <input class="form-control" type="text" name="paypal_secret_key" id="paypal_secret_key" maxlength="255" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paypalConfiguration']->value['PAYPAL_SECRET_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>
<!-- PayPal --><?php }
}
