63 lines
3.8 KiB
Smarty
Raw Normal View History

{include file="sections/header.tpl"}
<form class="form-horizontal" method="post" role="form" action="{$_url}paymentgateway/iotec">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="panel panel-primary panel-hovered panel-stacked mb30">
<div class="panel-heading">ioTec Pay</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Client ID</label>
<div class="col-md-6">
<input type="text" class="form-control" id="iotec_client_id" name="iotec_client_id" placeholder="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" value="{$_c['iotec_client_id']}">
<small class="form-text text-muted"><a href="https://pay.iotec.io" target="_blank">Contact ioTec Support for credentials</a></small>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Client Secret</label>
<div class="col-md-6">
<input type="password" class="form-control" id="iotec_client_secret" name="iotec_client_secret" placeholder="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" value="{$_c['iotec_client_secret']}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Wallet ID</label>
<div class="col-md-6">
<input type="text" class="form-control" id="iotec_wallet_id" name="iotec_wallet_id" placeholder="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" maxlength="36" value="{$_c['iotec_wallet_id']}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">ioTec Environment</label>
<div class="col-md-6">
<select class="form-control" name="iotec_env">
{foreach $env as $environment}
<option value="{$environment['id']}"
{if $environment['id'] == $_c['iotec_env']}selected{/if}
>{$environment['id']} - {$environment['name']}</option>
{/foreach}
</select>
<small class="form-text text-muted"><font color="red"><b>Sandbox</b></font> is for testing with test numbers. Switch to <font color="green"><b>Live</b></font> for production.</small>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Callback URL</label>
<div class="col-md-6">
<input type="text" readonly class="form-control" onclick="this.select()" value="{$_url}callback/iotec">
<p class="help-block">Register this URL with ioTec Support for transaction notifications</p>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
</div>
</div>
<pre>Test Numbers for Sandbox:
0111777770 to 0111777779 (Success)
0111777780 to 0111777789 (Pending)
0111777790 to 0111777799 (SentToVendor)
0111777990 to 0111777999 (Failed)</pre>
</div>
</div>
</div>
</div>
</form>
{include file="sections/footer.tpl"}