diff --git a/ui/ui/paymentgateway-audit-view.tpl b/ui/ui/paymentgateway-audit-view.tpl index 844f6fb0..90dc2308 100644 --- a/ui/ui/paymentgateway-audit-view.tpl +++ b/ui/ui/paymentgateway-audit-view.tpl @@ -1,79 +1,122 @@ {include file="sections/header.tpl"} +
+
+
+
+
+ {$pg['id']} +
+
+
    +
  • + Gateway trx id + {$pg['gateway_trx_id']} +
  • +
  • + {Lang::T('Invoice')} + + {$pg['trx_invoice']} + +
  • +
  • + {Lang::T('Status')} + + {if $pg['status'] == 1}UNPAID{elseif $pg['status'] == 2}PAID{elseif $pg['status'] == 3}FAILED{else}CANCELED{/if} + +
  • +
  • + {Lang::T('Username')} + + {$pg['username']} + +
  • +
  • + {Lang::T('Plan Name')} + {$pg['plan_name']} +
  • +
  • + {Lang::T('Routers')} + {$pg['routers']} +
  • +
  • + {Lang::T('Price')} + {Lang::moneyFormat($pg['price'])} +
  • +
  • + {Lang::T('Payment Link')} + + {if $pg['pg_url_payment']} + click here + {/if} + +
  • +
  • + {Lang::T('Channel')} + {$pg['payment_method']} - {$pg['payment_channel']} +
  • +
  • + {Lang::T('Created')} + {if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if} +
  • +
  • + {Lang::T('Expired')} + {if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if} +
  • +
  • + {Lang::T('Paid')} + {if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if} +
  • +
+
+
+
+
-
-
-
-
- {$pg['gateway_trx_id']} -
-
-
    -
  • - TRX ID  {$pg['id']}  -
  • -
  • - {Lang::T('Invoice')}   - {$pg['trx_invoice']} -   -
  • -
  • - {Lang::T('Status')}  {if $pg['status'] == 1}UNPAID{elseif $pg['status'] == 2}PAID{elseif $pg['status'] == 3}FAILED{else}CANCELED{/if}  -
  • -
  • - {Lang::T('Username')} -  {$pg['username']}  -
  • -
  • - {Lang::T('Plan Name')}  {$pg['plan_name']}  -
  • -
  • - {Lang::T('Routers')}  {$pg['routers']}  -
  • -
  • - {Lang::T('Price')}  {Lang::moneyFormat($pg['price'])}  -
  • -
  • - {Lang::T('Payment Link')}  {if $pg['pg_url_payment']} - open - {/if}  -
  • -
  • - {Lang::T('Channel')}  {$pg['payment_method']} - - {$pg['payment_channel']}  -
  • -
  • - {Lang::T('Created')}  {if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if}  -
  • -
  • - {Lang::T('Expired')}  {if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if}  -
  • -
  • - {Lang::T('Paid')}  {if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if}  -
  • -
-
+
+
+ Response +
+
+ {if $pg['pg_paid_response'] != null} + {assign var='paid_response' value=json_decode($pg['pg_paid_response'], true)} + + + + + + + + + {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} + + + + + {/foreach} + {else} + + + + + {/if} + {/foreach} + {else} + + + + + {/if} + {/foreach} + +
KeyValue
{$k} - {$vk} - {$vvk}{$vvv|json_encode}
{$k} - {$vk}{$vv|json_encode nofilter}
{$k}{if is_array(json_decode($v, true))}{$v|json_encode}{else}{$v nofilter}{/if}
+ {/if}
-
-
- Response when request payment -
-
{if $pg['pg_request'] != null}{Lang::jsonArray2text(json_decode($pg['pg_request'], true))}{/if}
-
-
-
- Response when payment PAID -
-
{if $pg['pg_request'] != null}{Lang::jsonArray2text(json_decode($pg['pg_paid_response'], true))}{/if}
-
- -{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"} diff --git a/ui/ui/paymentgateway-audit.tpl b/ui/ui/paymentgateway-audit.tpl index e10de7d3..3863bece 100644 --- a/ui/ui/paymentgateway-audit.tpl +++ b/ui/ui/paymentgateway-audit.tpl @@ -17,16 +17,12 @@ - - - - @@ -35,13 +31,11 @@ {foreach $pgs as $pg} - + class="text-black">{$pg['id']} - - - @@ -63,8 +55,8 @@
TRX ID PG ID {Lang::T('Username')} {Lang::T('Plan Name')}{Lang::T('Routers')} {Lang::T('Price')} {Lang::T('Payment Link')}{Lang::T('Channel')} {Lang::T('Created')}{Lang::T('Expired')} {Lang::T('Paid')} {Lang::T('Invoice')} {Lang::T('Status')}
{$pg['id']} {$pg['gateway_trx_id']} {$pg['username']} {$pg['plan_name']}{$pg['routers']} {Lang::moneyFormat($pg['price'])} {if $pg['pg_url_payment']} @@ -49,9 +43,7 @@ rel="noopener noreferrer">open {/if} {$pg['payment_method']} - {$pg['payment_channel']} {if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if}{if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if} {if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if} {if $pg['trx_invoice']}{$pg['trx_invoice']}{/if}
{include file="pagination.tpl"} - kembali +
-{include file="sections/footer.tpl"} \ No newline at end of file +{include file="sections/footer.tpl"}