change to pg- and add duitku

This commit is contained in:
Ibnu Maksum
2022-09-14 15:58:12 +07:00
parent 48350941e9
commit 8a8c7f897f
14 changed files with 300 additions and 107 deletions

View File

@ -34,10 +34,11 @@
<option value="xendit" {if $_c['payment_gateway'] eq 'xendit'}selected="selected" {/if}>Xendit - Indonesia &amp; Philippines</option>
{* <option value="midtrans" {if $_c['payment_gateway'] eq 'midtrans'}selected="selected" {/if}>Midtrans</option> *}
<option value="tripay" {if $_c['payment_gateway'] eq 'tripay'}selected="selected" {/if}>Tripay - Indonesia</option>
<option value="duitku" {if $_c['payment_gateway'] eq 'duitku'}selected="selected" {/if}>Duitku - Indonesia</option>
</select>
</div>
</div>
<div class="form-group">
<div class="form-group hidden">
<label class="col-md-2 control-label">Radius Mode?</label>
<div class="col-md-6">
<select name="radius_mode" id="radius_mode" class="form-control">

52
ui/ui/pg-duitku.tpl Normal file
View File

@ -0,0 +1,52 @@
{include file="sections/header.tpl"}
<form class="form-horizontal" method="post" role="form" action="{$_url}paymentgateway/duitku-post" >
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="panel panel-default panel-hovered panel-stacked mb30">
<div class="panel-heading">DUITKU</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Kode Merchant</label>
<div class="col-md-6">
<input type="text" class="form-control" id="duitku_merchant_id" name="duitku_merchant_id" placeholder="D" value="{$_c['duitku_merchant_id']}">
<a href="https://duitku.com/merchant/Project" target="_blank" class="help-block">https://duitku.com/merchant/Project</a>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Merchant/API Key</label>
<div class="col-md-6">
<input type="text" class="form-control" id="duitku_merchant_key" name="duitku_merchant_key" placeholder="xxxxxxxxxxxxxxxxx" value="{$_c['duitku_merchant_key']}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Url Callback Proyek</label>
<div class="col-md-6">
<input type="text" readonly class="form-control" onclick="this.select()" value="{$_url}callback/duitku">
<a href="https://duitku.com/merchant/Project" target="_blank" class="help-block">https://duitku.com/merchant/Project</a>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Channels</label>
<div class="col-md-6">
{foreach $channels as $channel}
<label class="checkbox-inline"><input type="checkbox" {if strpos($_c['duitku_channel'], $channel['id']) !== false}checked="true"{/if} id="duitku_channel" name="duitku_channel[]" value="{$channel['id']}"> {$channel['name']}</label>
{/foreach}
</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>/ip hotspot walled-garden
add dst-host=duitku.com
add dst-host=*.duitku.com</pre>
</div>
</div>
</div>
</div>
</form>
{include file="sections/footer.tpl"}

View File

@ -271,6 +271,7 @@
<li {if $_system_menu eq 'paymentgateway'}class="active"{/if}><a href="{$_url}paymentgateway/xendit">Xendit</a></li>
{* <li {if $_system_menu eq 'paymentgateway'}class="active"{/if}><a href="{$_url}paymentgateway/midtrans">Midtrans</a></li> *}
<li {if $_system_menu eq 'paymentgateway'}class="active"{/if}><a href="{$_url}paymentgateway/tripay">Tripay</a></li>
<li {if $_system_menu eq 'paymentgateway'}class="active"{/if}><a href="{$_url}paymentgateway/duitku">Duitku</a></li>
<li>&nbsp;</li>
</ul>
</li>