Skip to content

Commit cd79a07

Browse files
committed
Checkout page touch-ups
1 parent a76d8c7 commit cd79a07

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

templates/completed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Lightning rhash: <strong><?php echo $invoice->rhash ?></strong>
88
</li>
99
<li>
10-
Invoice amount: <strong><?php echo number_format($invoice->msatoshi/100000000, 8) ?> mBTC</strong>
10+
Invoice amount: <strong><?php echo rtrim(number_format($invoice->msatoshi/100000000, 8), "0.") ?> mBTC</strong>
1111
</li>
1212
<li>
1313
Payment request: <strong><?php echo $invoice->payreq ?></strong>

templates/payment.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66
<div class="ln-pay">
77
<h1>Pay with Lightning</h1>
8-
<h3><?php echo $order->get_formatted_order_total() ?> = <?php echo number_format($invoice->msatoshi/100000000, 8) ?> mBTC</h3>
8+
<h3>
9+
<?php if ($order->get_currency() !== 'BTC'): ?> <?php echo $order->get_total() ?> <?php echo $order->get_currency() ?> = <?php endif ?>
10+
<?php echo rtrim(number_format($invoice->msatoshi/100000000, 8), "0.") ?> mBTC
11+
</h3>
912
<img class="qr" src="<?php echo $qr_uri ?>">
1013
<code class="payreq"><?php echo $invoice->payreq ?></code>
1114
<p>

0 commit comments

Comments
 (0)