File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
Lightning rhash: <strong><?php echo $ invoice ->rhash ?> </strong>
8
8
</li>
9
9
<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>
11
11
</li>
12
12
<li>
13
13
Payment request: <strong><?php echo $ invoice ->payreq ?> </strong>
Original file line number Diff line number Diff line change 5
5
6
6
<div class="ln-pay">
7
7
<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>
9
12
<img class="qr" src="<?php echo $ qr_uri ?> ">
10
13
<code class="payreq"><?php echo $ invoice ->payreq ?> </code>
11
14
<p>
You can’t perform that action at this time.
0 commit comments