Skip to content

Commit

Permalink
Fix misc bug with subtotal when requesting shipping info
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev authored Dec 16, 2024
1 parent 956d158 commit d0567b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pay.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// NanoPay 1.2.0
// March 18, 2024
// NanoPay 1.2.1
// December 16, 2024
// https://github.com/fwd/NanoPay
// (c) @nano2dev <[email protected]>
// Released under MIT License
Expand Down Expand Up @@ -956,7 +956,7 @@
<div id="nano-pay-description">${description}</div>
</div>
<div id="nano-pay-details-values">
<div style="display: ${config.shipping !== true && config.shipping || config.shipping === 0 ? 'block' : 'none'}; text-align: right">${rpc_checkout.subtotal} ${symbol}</div>
<div style="display: ${config.shipping !== true && config.shipping || config.shipping === 0 ? 'block' : 'none'}; text-align: right">${config.amount} ${symbol}</div>
<div id="nano-pay-shipping-amount" style="display: ${config.shipping !== true && config.shipping || config.shipping === 0 ? 'block' : 'none'}; text-align: right">${rpc_checkout.shipping ? rpc_checkout.shipping + ' ' + symbol : 'FREE'}</div>
<br style="display: ${config.shipping !== true && config.shipping || config.shipping === 0 ? 'block' : 'none'}; text-align: right">
<div id="nano-pay-amount-value">${rpc_checkout.amount} ${symbol}</div>
Expand Down

0 comments on commit d0567b4

Please sign in to comment.