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"}