style: declined

webht/payment
Lei OT 7 months ago
parent adb98391c3
commit 2491353373

@ -1,4 +1,14 @@
<form action="/webht.php/apps/pay/paymentService/gai_modal_save" method="post" id="form_modal_gai" name="form_modal_gai">
<details>
<summary class="r">交易数据</summary>
<pre><?php
// $array = json_decode($note, true); // var_dump($array);
// unset($note->OPN_rawContent);
$jsonPretty = json_encode($note, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
echo htmlspecialchars($jsonPretty);
?>
</pre>
</details>
<?php // var_dump($gai_info);
if ( ! empty($gai_info)) { ?>
<p>已录入订单 <?php echo !empty($old_order) ? $old_order : ""; ?></p>

@ -260,14 +260,17 @@
<?php
foreach ($notelist as $key => $item) {
?>
<tr class="<?php echo $item->OPN_transactionResult !== 'completed' ? 'text-muted' : ''; ?>">
<tr class="<?php echo $item->OPN_transactionResult !== 'completed' ? $item->OPN_transactionResult == 'declined' ? 'text-danger' : 'text-muted' : ''; ?>">
<td><?php echo $key+1; ?></td>
<td><span class="brand_text <?php echo strtolower(str_replace(" ","",$item->brand_name))."-color"; ?>"><?php echo $item->brand_name; ?></span>
<span class="brand_text <?php echo strtolower(str_replace('cht', '',str_replace(" ","",$item->OPN_fundSource)))."-color"; ?>"><?php echo str_replace('cht', '', $item->OPN_fundSource); ?></span>
<span><?php echo $item->OPN_orderId . ' / ' ?><b><?php echo $item->OPN_orderAmount; ?></b><?php echo $item->OPN_currency; ?></span>
<a href="<?php $p_invoice = explode('_', $item->OPN_invoiceId); echo set_url_param(array('keywords'=>$p_invoice[0] ? $p_invoice[0] : $item->OPN_orderId)); ?>"><?php echo $item->OPN_orderId; ?></a>
<span><?php // echo $item->OPN_orderId . ' / ' ?>&nbsp;/&nbsp;<b><?php echo $item->OPN_orderAmount; ?></b><?php echo $item->OPN_currency; ?></span>
<?php // echo $item->OPN_orderId . ' / ' . $item->OPN_orderAmount . $item->OPN_currency; ?>
</td>
<td><?= $item->OPN_payerName ? $item->OPN_payerName : $item->OPN_payerEmail ?></td>
<td><?= $item->OPN_payerName .'<br>'. $item->OPN_payerEmail ?></td>
<td class="hidden-xs">
<?php if ($item->app_name) { ?>
<span class="brand_text <?php echo strtolower(str_replace(" ","",$item->app_name))."-color"; ?>"><?php echo $item->app_name; ?></span>
@ -305,7 +308,9 @@
?>
<?php
if ($item->OPN_transactionResult !== 'completed') {
echo '<span class=text-muted >' . strtoupper($item->OPN_transactionResult) . '</span><br>';
$cls = $item->OPN_transactionResult == 'declined' ? 'text-danger' : 'text-muted';
$text = strtoupper($item->OPN_transactionResult);
echo "<span class={$cls} >{$text}</span><br>";
} elseif ($item->OPN_noticeType !== 'pay') {
echo '<span class=text-danger >' . strtoupper($item->OPN_noticeType) . '</span><br>';
} else {

Loading…
Cancel
Save