commit
9720822c79
@ -1,61 +1,71 @@
|
|||||||
{include file="sections/header.tpl"}
|
{include file="sections/header.tpl"}
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-5">
|
<div class="col-md-12">
|
||||||
<div class="panel panel-hovered mb20 panel-primary">
|
<div class="panel panel-primary mb-3">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
{$pg['gateway_trx_id']}
|
{$pg['id']}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<ul class="list-group list-group-unbordered">
|
<ul class="list-group list-group-flush">
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>TRX ID</b> <span class="pull-right"> {$pg['id']} </span>
|
<b>Gateway trx id</b>
|
||||||
|
<span class="float-end">{$pg['gateway_trx_id']}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Invoice')}</b> <span class="pull-right">
|
<b>{Lang::T('Invoice')}</b>
|
||||||
<a href="{$_url}reports/activation&q={$pg['trx_invoice']}" class="text-black">{$pg['trx_invoice']}</a>
|
<span class="float-end">
|
||||||
</span>
|
<a href="{$_url}reports/activation&q={$pg['trx_invoice']}" class="text-dark">{$pg['trx_invoice']}</a>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Status')}</b> <span
|
<b>{Lang::T('Status')}</b>
|
||||||
class="pull-right"> {if $pg['status'] == 1}UNPAID{elseif $pg['status'] == 2}PAID{elseif $pg['status'] == 3}FAILED{else}CANCELED{/if} </span>
|
<span class="float-end">
|
||||||
|
{if $pg['status'] == 1}UNPAID{elseif $pg['status'] == 2}PAID{elseif $pg['status'] == 3}FAILED{else}CANCELED{/if}
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Username')}</b>
|
<b>{Lang::T('Username')}</b>
|
||||||
<span class="pull-right"> <a href="{$_url}customers/viewu/{$pg['username']}" class="text-black">{$pg['username']}</a> </span>
|
<span class="float-end">
|
||||||
|
<a href="{$_url}customers/viewu/{$pg['username']}" class="text-dark">{$pg['username']}</a>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Plan Name')}</b> <span class="pull-right"> {$pg['plan_name']} </span>
|
<b>{Lang::T('Plan Name')}</b>
|
||||||
|
<span class="float-end">{$pg['plan_name']}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Routers')}</b> <span class="pull-right"> {$pg['routers']} </span>
|
<b>{Lang::T('Routers')}</b>
|
||||||
|
<span class="float-end">{$pg['routers']}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Price')}</b> <span
|
<b>{Lang::T('Price')}</b>
|
||||||
class="pull-right"> {Lang::moneyFormat($pg['price'])} </span>
|
<span class="float-end">{Lang::moneyFormat($pg['price'])}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Payment Link')}</b> <span class="pull-right"> {if $pg['pg_url_payment']}
|
<b>{Lang::T('Payment Link')}</b>
|
||||||
<a href="{$pg['pg_url_payment']}" target="_blank" class="btn btn-xs btn-default"
|
<span class="float-end">
|
||||||
rel="noopener noreferrer">open</a>
|
{if $pg['pg_url_payment']}
|
||||||
{/if} </span>
|
<a href="{$pg['pg_url_payment']}" target="_blank" class="btn btn-outline-secondary btn-sm" rel="noopener noreferrer">click here</a>
|
||||||
|
{/if}
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Channel')}</b> <span class="pull-right"> {$pg['payment_method']} -
|
<b>{Lang::T('Channel')}</b>
|
||||||
{$pg['payment_channel']} </span>
|
<span class="float-end">{$pg['payment_method']} - {$pg['payment_channel']}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Created')}</b> <span
|
<b>{Lang::T('Created')}</b>
|
||||||
class="pull-right"> {if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if} </span>
|
<span class="float-end">{if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Expired')}</b> <span
|
<b>{Lang::T('Expired')}</b>
|
||||||
class="pull-right"> {if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if} </span>
|
<span class="float-end">{if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Paid')}</b> <span
|
<b>{Lang::T('Paid')}</b>
|
||||||
class="pull-right"> {if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if} </span>
|
<span class="float-end">{if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -63,17 +73,50 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel panel-hovered mb20 panel-primary">
|
<div class="panel panel-primary mb-3">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
Response when request payment
|
Response
|
||||||
</div>
|
</div>
|
||||||
<pre class="panel-body p-1">{if $pg['pg_request'] != null}{Lang::jsonArray2text(json_decode($pg['pg_request'], true))}{/if}</pre>
|
<div class="panel-body">
|
||||||
|
{if $pg['pg_paid_response'] != null}
|
||||||
|
{assign var='paid_response' value=json_decode($pg['pg_paid_response'], true)}
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Key</th>
|
||||||
|
<th>Value</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{foreach from=$paid_response key=k item=v}
|
||||||
|
{if is_array($v)}
|
||||||
|
{foreach from=$v key=vk item=vv}
|
||||||
|
{if is_array($vv)}
|
||||||
|
{foreach from=$vv key=vvk item=vvv}
|
||||||
|
<tr>
|
||||||
|
<td>{$k} - {$vk} - {$vvk}</td>
|
||||||
|
<td>{$vvv|json_encode}</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
{else}
|
||||||
|
<tr>
|
||||||
|
<td>{$k} - {$vk}</td>
|
||||||
|
<td>{$vv|json_encode nofilter}</td>
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
{else}
|
||||||
|
<tr>
|
||||||
|
<td>{$k}</td>
|
||||||
|
<td>{if is_array(json_decode($v, true))}{$v|json_encode}{else}{$v nofilter}{/if}</td>
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel panel-hovered mb20 panel-primary">
|
|
||||||
<div class="panel-heading">
|
|
||||||
Response when payment PAID
|
|
||||||
</div>
|
</div>
|
||||||
<pre class="panel-body p-1">{if $pg['pg_request'] != null}{Lang::jsonArray2text(json_decode($pg['pg_paid_response'], true))}{/if}</pre>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{include file="sections/footer.tpl"}
|
{include file="sections/footer.tpl"}
|
@ -17,16 +17,12 @@
|
|||||||
<table class="table table-bordered table-striped table-condensed">
|
<table class="table table-bordered table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>TRX ID</th>
|
|
||||||
<th>PG ID</th>
|
<th>PG ID</th>
|
||||||
<th>{Lang::T('Username')}</th>
|
<th>{Lang::T('Username')}</th>
|
||||||
<th>{Lang::T('Plan Name')}</th>
|
<th>{Lang::T('Plan Name')}</th>
|
||||||
<th>{Lang::T('Routers')}</th>
|
|
||||||
<th>{Lang::T('Price')}</th>
|
<th>{Lang::T('Price')}</th>
|
||||||
<th>{Lang::T('Payment Link')}</th>
|
<th>{Lang::T('Payment Link')}</th>
|
||||||
<th>{Lang::T('Channel')}</th>
|
|
||||||
<th>{Lang::T('Created')}</th>
|
<th>{Lang::T('Created')}</th>
|
||||||
<th>{Lang::T('Expired')}</th>
|
|
||||||
<th>{Lang::T('Paid')}</th>
|
<th>{Lang::T('Paid')}</th>
|
||||||
<th>{Lang::T('Invoice')}</th>
|
<th>{Lang::T('Invoice')}</th>
|
||||||
<th>{Lang::T('Status')}</th>
|
<th>{Lang::T('Status')}</th>
|
||||||
@ -35,13 +31,11 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{foreach $pgs as $pg}
|
{foreach $pgs as $pg}
|
||||||
<tr class="{if $pg['status'] == 1}warning{elseif $pg['status'] == 2}success{else}danger{/if}">
|
<tr class="{if $pg['status'] == 1}warning{elseif $pg['status'] == 2}success{else}danger{/if}">
|
||||||
<td>{$pg['id']}</td>
|
|
||||||
<td><a href="{$_url}paymentgateway/audit-view/{$pg['id']}"
|
<td><a href="{$_url}paymentgateway/audit-view/{$pg['id']}"
|
||||||
class="text-black">{$pg['gateway_trx_id']}</a></td>
|
class="text-black">{$pg['id']}</a></td>
|
||||||
<td><a href="{$_url}customers/viewu/{$pg['username']}" class="text-black">{$pg['username']}</a>
|
<td><a href="{$_url}customers/viewu/{$pg['username']}" class="text-black">{$pg['username']}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{$pg['plan_name']}</td>
|
<td>{$pg['plan_name']}</td>
|
||||||
<td>{$pg['routers']}</td>
|
|
||||||
<td>{Lang::moneyFormat($pg['price'])}</td>
|
<td>{Lang::moneyFormat($pg['price'])}</td>
|
||||||
<td>
|
<td>
|
||||||
{if $pg['pg_url_payment']}
|
{if $pg['pg_url_payment']}
|
||||||
@ -49,9 +43,7 @@
|
|||||||
rel="noopener noreferrer">open</a>
|
rel="noopener noreferrer">open</a>
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
<td>{$pg['payment_method']} - {$pg['payment_channel']}</td>
|
|
||||||
<td>{if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if}</td>
|
<td>{if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if}</td>
|
||||||
<td>{if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if}</td>
|
|
||||||
<td>{if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if}</td>
|
<td>{if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if}</td>
|
||||||
<td>{if $pg['trx_invoice']}<a href="{$_url}reports/activation&q={$pg['trx_invoice']}"
|
<td>{if $pg['trx_invoice']}<a href="{$_url}reports/activation&q={$pg['trx_invoice']}"
|
||||||
class="text-black">{$pg['trx_invoice']}</a>{/if}</td>
|
class="text-black">{$pg['trx_invoice']}</a>{/if}</td>
|
||||||
@ -63,7 +55,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{include file="pagination.tpl"}
|
{include file="pagination.tpl"}
|
||||||
<a href="{$_url}paymentgateway/" class="btn btn-default btn-xs">kembali</a>
|
<button type="button" class="btn btn-primary btn-block" onclick="window.history.back();">{Lang::T('back')}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user