154 lines
7.0 KiB
Smarty
154 lines
7.0 KiB
Smarty
<style>
|
|
#sandbox_text_enabled {
|
|
color:red;
|
|
}
|
|
</style>
|
|
|
|
<div class="imoje-wrap bootstrap">
|
|
{if $imoje_msg != ''}
|
|
<div class="bootstrap">
|
|
<div class="{if $imoje_msg.type == 'error'}alert alert-danger{else}alert alert-success{/if}">{$imoje_msg.message}</div>
|
|
</div>
|
|
{/if}
|
|
<div class="imoje-header">
|
|
<span class="imoje-intro">
|
|
<img width="85" alt="imoje" src="{$module_dir}logo.svg"/>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="imoje-half">
|
|
<form id="imoje-configuration" method="post" name="imoje-configuration">
|
|
<h3>
|
|
<img src="{$module_dir}assets/img/icon-config.gif" alt="config icon"
|
|
class="config-icon"/>{l s='Configuration' mod='imoje'}
|
|
</h3>
|
|
<p class="MB10">{l s='The module requires a configuration in the imoje administration panel. Go to imoje.ingbank.pl and log in to the administration panel. Go to stores tab and enter the notification address in the appropriate field and copy the configuration keys. Copy the keys into the fields described below.' mod='imoje'}</p>
|
|
<hr/>
|
|
{if $imoje_sandbox == 1}
|
|
<h3 id="sandbox_text_enabled">{l s='Sandbox mode is enabled' mod='imoje'}!</h3>
|
|
<hr/>
|
|
<br>
|
|
{/if}
|
|
<div id="imoje">
|
|
<label for="imoje_sandbox">{l s='Sandbox' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<select name="imoje_sandbox" class="imoje-sel-en">
|
|
<option value="0" {if $imoje_sandbox == 0}selected{/if}>{l s='Off' mod='imoje'}</option>
|
|
<option value="1" {if $imoje_sandbox == 1}selected{/if}>{l s='On' mod='imoje'}</option>
|
|
</select>
|
|
</div><br/>
|
|
|
|
<div id="imoje_data">
|
|
<label for="imoje_merchant_id">{l s='Merchant ID' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_merchant_id" id="imoje_merchant_id"
|
|
value="{$imoje_merchant_id|escape:'htmlall':'UTF-8'}" required
|
|
data-error-msg="{l s='Merchant ID is not a valid key' mod='imoje'}"/>
|
|
</div>
|
|
<label for="imoje_service_id">{l s='Service ID' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_service_id" id="imoje_service_id"
|
|
value="{$imoje_service_id|escape:'htmlall':'UTF-8'}" required
|
|
data-error-msg="{l s='Service ID is not a valid key' mod='imoje'}"/>
|
|
</div>
|
|
<label for="imoje_service_id">{l s='Service key' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_service_key" id="imoje_service_key"
|
|
value="{$imoje_service_key|escape:'htmlall':'UTF-8'}" required
|
|
data-error-msg="{l s='Service Key is not a valid key' mod='imoje'}"/>
|
|
</div><br/>
|
|
|
|
<label for="imoje_token">{l s='Authorization token' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_token" id="imoje_token"
|
|
value="{$imoje_token|escape:'htmlall':'UTF-8'}" required/>
|
|
</div><br/>
|
|
|
|
<label for="imoje_payment_title">{l s='Payment title - imoje' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_payment_title" id="imoje_payment_title"
|
|
placeholder="{$imoje_payment_title_default}" value="{if $imoje_payment_title}{$imoje_payment_title|escape:'htmlall':'UTF-8'}{/if}"/>
|
|
</div>
|
|
<label for='imoje_button'>{l s='Show payment button imoje (checkout)' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_imoje_button' type="hidden">
|
|
<input {if $imoje_imoje_button}checked{/if} value="1" class="checkbox"
|
|
name='imoje_imoje_button' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div><br/>
|
|
|
|
<label for="imoje_payment_title">{l s='Payment title - BLIK' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_blik_payment_title" id="imoje_blik_payment_title"
|
|
placeholder="{$imoje_blik_payment_title_default}" value="{if $imoje_blik_payment_title}{$imoje_blik_payment_title|escape:'htmlall':'UTF-8'}{/if}"/>
|
|
</div>
|
|
<label for='imoje_button'>{l s='Show payment button BLIK (checkout)' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_blik_button' type="hidden">
|
|
<input {if $imoje_blik_button}checked{/if} value="1" class="checkbox"
|
|
name='imoje_blik_button' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div><br/>
|
|
|
|
<label for="imoje_ga_key">{l s='Google Analytics key' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_ga_key" id="imoje_ga_key"
|
|
value="{$imoje_ga_key|escape:'htmlall':'UTF-8'}"
|
|
data-error-msg="{l s='Google Analytics key is not a valid' mod='imoje'}"/>
|
|
</div>
|
|
|
|
{if $imoje_service_key && $imoje_service_id && $imoje_merchant_id}
|
|
<div id="imoje_payment_methods">
|
|
<br>
|
|
<div class="margin-form">
|
|
<a class="btn btn-danger"
|
|
href="{$imoje_payment_methods_url}">{l s='Activate Twisto' mod='imoje'}</a>
|
|
</div>
|
|
{if !empty($imoje_payment_methods)}
|
|
<br>
|
|
<label for='twisto'>Twisto</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_twisto' type="hidden">
|
|
<input {if $imoje_twisto}checked{/if} value="1" class="checkbox"
|
|
name='imoje_twisto' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
{if $imoje_twisto}
|
|
<label for='twisto_button'>{l s='Show payment button Twisto (checkout)' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_twisto_button' type="hidden">
|
|
<input {if $imoje_twisto_button}checked{/if} value="1" class="checkbox"
|
|
name='imoje_twisto_button' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<div style="{if !$imoje_twisto_button}display:none;{/if}">
|
|
<label for="imoje_twisto_payment_title">{l s='Payment title - Twisto' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_twisto_payment_title" id="imoje_twisto_payment_title"
|
|
placeholder="{$imoje_twisto_payment_title_default}" value="{if $imoje_twisto_payment_title}{$imoje_twisto_payment_title|escape:'htmlall':'UTF-8'}{/if}"/>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/if}
|
|
<br>
|
|
<p>
|
|
{l s='Your addres for notifications' mod='imoje'}: <span
|
|
class="imoje-text-bold">{$imoje_notification_url}</span>
|
|
</p>
|
|
</div>
|
|
{/if}
|
|
<hr/>
|
|
</div>
|
|
<div class="margin-form">
|
|
<input id="submit-imoje-configuration" type="submit" class="btn btn-primary" name="submitiMoje"
|
|
value="{l s='Save' mod='imoje'}"/>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|