tripay pg and list channels

This commit is contained in:
Ibnu Maksum
2022-09-07 14:44:04 +07:00
parent 41aa9f74ea
commit 8b7001b5ef
20 changed files with 759 additions and 36 deletions

View File

@ -28,8 +28,8 @@
<div class="form-group">
<label class="col-md-2 control-label">Payment Notification URL</label>
<div class="col-md-6">
<input type="text" readonly class="form-control" value="{$_url}callback/midtrans">
<p class="help-block">Payment Notification URL, Recurring Notification URL, Pay Account Notification URL</p>
<input type="text" readonly class="form-control" onclick="this.select()" value="{$_url}callback/midtrans">
<p class="help-block">{Lang::T('Payment Notification URL, Recurring Notification URL, Pay Account Notification URL')}</p>
<a href="https://dashboard.midtrans.com/settings/vtweb_configuration" target="_blank" class="help-block">https://dashboard.midtrans.com/settings/vtweb_configuration</a>
</div>
</div>
@ -37,11 +37,19 @@
<div class="form-group">
<label class="col-md-2 control-label">Finish Redirect URL</label>
<div class="col-md-6">
<input type="text" readonly class="form-control" value="{$_url}accounts/transaction">
<p class="help-block">Finish Redirect URL, Unfinish Redirect URL, Error Redirect URL</p>
<input type="text" readonly class="form-control" onclick="this.select()" value="{$_url}accounts/transaction">
<p class="help-block">{Lang::T('Finish Redirect URL, Unfinish Redirect URL, Error Redirect URL')}</p>
<a href="https://dashboard.midtrans.com/settings/vtweb_configuration" target="_blank" class="help-block">https://dashboard.midtrans.com/settings/vtweb_configuration</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['midtrans_channel'], $channel['id']) !== false}checked="true"{/if} id="midtrans_channel" name="midtrans_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>

View File

@ -52,12 +52,22 @@
</div>
</div>
</div>
<div class="panel-heading">SMS OTP Registration</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">SMS Server URL</label>
<div class="col-md-6">
<input type="text" class="form-control" id="sms_url" name="sms_url" value="{$_c['sms_url']}" placeholder="https://domain/?param_number=[number]&param_text=[text]&secret=">
<p class="help-block">Must include <b>[text]</b> &amp; <b>[number]</b>, it will be replaced.</p>
</div>
</div>
</div>
<div class="panel-heading">Whatsapp Notification</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Server URL</label>
<label class="col-md-2 control-label">Whatsapp Server URL</label>
<div class="col-md-6">
<input type="text" class="form-control" id="sms_url" name="sms_url" value="{$_c['sms_url']}" placeholder="https://domain/?param_number=[number]&param_text=[text]&secret=">
<input type="text" class="form-control" id="wa_url" name="wa_url" value="{$_c['wa_url']}" placeholder="https://domain/?param_number=[number]&param_text=[text]&secret=">
<p class="help-block">Must include <b>[text]</b> &amp; <b>[number]</b>, it will be replaced.</p>
</div>
</div>

53
ui/ui/app-tripay.tpl Normal file
View File

@ -0,0 +1,53 @@
{include file="sections/header.tpl"}
<form class="form-horizontal" method="post" role="form" action="{$_url}paymentgateway/tripay-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">Tripay</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="tripay_merchant" name="tripay_merchant" placeholder="T" value="{$_c['tripay_merchant']}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">API Key</label>
<div class="col-md-6">
<input type="text" class="form-control" id="tripay_api_key" name="tripay_api_key" value="{$_c['tripay_api_key']}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Secret Key</label>
<div class="col-md-6">
<input type="text" class="form-control" id="tripay_secret_key" name="tripay_secret_key" value="{$_c['tripay_secret_key']}">
</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/tripay">
</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['tripay_channel'], $channel['id']) !== false}checked="true"{/if} id="tripay_channel" name="tripay_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>
<a class="btn btn-info waves-effect waves-light" href="https://tripay.co.id/?ref=TP19304" target="_blank">Daftar Tripay</a>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
{include file="sections/footer.tpl"}

View File

@ -28,6 +28,14 @@
<a href="https://dashboard.xendit.co/settings/developers#callbacks" target="_blank" class="help-block">https://dashboard.xendit.co/settings/developers#callbacks</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['xendit_channel'], $channel['id']) !== false}checked="true"{/if} id="xendit_channel" name="xendit_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>

112
ui/ui/community.tpl Normal file
View File

@ -0,0 +1,112 @@
{include file="sections/header.tpl"}
<div class="row">
<div class="col-sm-6">
<div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">Discussions</div>
<div class="panel-body">Get help from community</div>
<div class="panel-footer">
<a href="https://github.com/ibnux/phpmixbill/discussions" target="_blank" class="btn btn-primary btn-lg btn-block"><i class="ion ion-chatboxes"></i> Chat Now</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">Feedback</div>
<div class="panel-body">
Feedback and Bug Report
</div>
<div class="panel-footer">
<a href="https://github.com/ibnux/phpmixbill/issues" target="_blank" class="btn btn-primary btn-lg btn-block"><i class="ion ion-chatboxes"></i> Give Feedback</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">Donasi</div>
<div class="panel-body">Untuk pengembangan lebih baik, donasi ke iBNuX, donasi akan membantu terus pengembangan aplikasi</div>
<div class="table-responsive">
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>BCA</td>
<td>5410-454-825</td>
</tr>
<tr>
<td>Mandiri</td>
<td>163-000-1855-793</td>
</tr>
<tr>
<td>Atas nama</td>
<td>Ibnu Maksum</td>
</tr>
</tbody>
</table>
</div>
<div class="panel-footer">
<a href="https://trakteer.id/ibnux" target="_blank" class="btn btn-primary btn-lg btn-block">Trakteer</a>
<a href="https://karyakarsa.com/ibnux/support" target="_blank" class="btn btn-primary btn-lg btn-block">karyakarsa</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">Donations</div>
<div class="panel-body">
Donations will help to continue phpmixbill development
</div>
<div class="table-responsive">
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>Bank Central Asia</td>
<td>5410-454-825</td>
</tr>
<tr>
<td>SWIFT/BIC</td>
<td>CENAIDJA</td>
</tr>
<tr>
<td>Jakarta</td>
<td>Indonesia</td>
</tr>
<tr>
<td>Account Name</td>
<td>Ibnu Maksum</td>
</tr>
</tbody>
</table>
</div>
<div class="panel-footer">
<a href="https://paypal.me/ibnux" target="_blank" class="btn btn-primary btn-lg btn-block">Paypal</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="panel panel-hovered mb20 panel-default">
<div class="panel-heading">Chat with me</div>
<div class="panel-body">Paid Support?<br>donation confirmation?<br>Or ask any Donation Alternative</div>
<div class="panel-footer">
<a href="https://t.me/ibnux" target="_blank" class="btn btn-primary btn-lg btn-block">Telegram</a>
<a href="https://twitter.com/messages/compose?recipient_id=20653807&text=Hello+i+am+phpmixbill+user" target="_blank" class="btn btn-primary btn-lg btn-block">Twitter</a>
<a href="https://m.me/ibnumaksum" target="_blank" class="btn btn-primary btn-lg btn-block">Facebook Messenger</a>
<a href="https://keybase.io/ibnux" target="_blank" class="btn btn-primary btn-lg btn-block">Keybase</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel panel-default panel-hovered mb20 activities">
<div class="panel-heading">PHPMIXBILL</div>
<div class="panel-body">
{$_L['Welcome_Text_Admin']}
</div>
</div>
</div>
</div>
{include file="sections/footer.tpl"}

View File

@ -84,7 +84,7 @@
<div class="col-md-7">
<div class="panel panel-default mb20 panel-hovered project-stats table-responsive">
<div class="panel-heading">Vouchers Stock</div>
<div class="panel-body">
<div class="panel-body">
<table class="table">
<thead>
<tr>
@ -137,7 +137,7 @@
</div>
</div>
</div>
<div class="col-md-5">
<div class="panel panel-default panel-hovered mb20 activities">
<div class="panel-heading">{$_L['Activity_Log']}</div>
@ -153,14 +153,8 @@
</ul>
</div>
</div>
<div class="panel panel-default panel-hovered mb20 activities">
<div class="panel-heading">PHPMIXBILL</div>
<div class="panel-body">
{$_L['Welcome_Text_Admin']}
</div>
</div>
</div>
</div>
{else}
<div class="row">
@ -204,7 +198,7 @@
<p class="small mb15">{date($_c['date_format'], strtotime($_bill['expiration']))} {$_bill['time']}</p>
</div>
</div>
</div>
</div>
</div>

View File

@ -11,6 +11,7 @@
<label class="col-md-2 control-label">{$_L['Plan_Name']}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="name" name="name">
<p class="help-block">{Lang::T('Cannot be change after saved')}</p>
</div>
</div>
<div class="form-group">
@ -79,6 +80,7 @@
<label class="col-md-2 control-label">{$_L['Shared_Users']}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="sharedusers" name="sharedusers" value="1">
<p class="help-block">{Lang::T('1 user can be used for many devices?')}</p>
</div>
</div>
<div class="form-group">
@ -103,6 +105,7 @@
<option value="{$rs['name']}">{$rs['name']}</option>
{/foreach}
</select>
<p class="help-block">{Lang::T('Cannot be change after saved')}</p>
</div>
</div>

View File

@ -23,7 +23,6 @@
<link rel="stylesheet" href="{$_theme}/styles/bootstrap.min.css">
<link rel="stylesheet" href="{$_theme}/styles/main.min.css">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,300' rel='stylesheet' type='text/css'>
<!-- Match Media polyfill for IE9 -->
<!--[if IE 9]> <script src="{$_theme}/scripts/ie/matchMedia.js"></script> <![endif]-->
@ -53,7 +52,7 @@
<li>
<div class="site-logo visible-xs">
<a href="{$_url}dashboard" class="text-uppercase h3">
<span class="text">{$_L['Logo']}</span>
<span class="text">{Lang::T('Logo')}</span>
</a>
</div>
</li>
@ -265,19 +264,20 @@
<li {if $_system_menu eq 'paymentgateway'}class="open"{/if}>
<a href="#" onClick="toggleDropdownMobile(this)">
<i class="ion ion-cash"></i>
<span class="text">Payment Gateway</span>
<span class="text">{Lang::T('Payment Gateway')}</span>
<i class="arrow ion-chevron-left"></i>
</a>
<ul class="inner-drop list-unstyled">
<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>&nbsp;</li>
</ul>
</li>
<li {if $_system_menu eq 'disquss'}class="active"{/if}>
<a href="https://github.com/ibnux/phpmixbill/discussions" target="_blank">
<i class="ion ion-chatbubbles"></i>
<span class="text">Discussions</span>
<li {if $_system_menu eq 'community'}class="active"{/if}>
<a href="{$_url}community">
<i class="ion ion-chatboxes"></i>
<span class="text">{Lang::T('Community')}</span>
</a>
</li>
{/if}