<% if (inv.status === 'confirming') { %>
<% } else if (inv.status !== 'paid') { %>
<% } %>
<% if (inv.status === 'pending' || inv.status === 'underpaid') { %>
<%= received > 0 && remaining > 0 ? remaining.toFixed(8) : inv.amount_crypto %>
<%= inv.coin_label %> (<%= inv.coin_ticker %>)
$<%= Number(inv.amount_usd).toFixed(2) %> USD
<% if (received > 0 && remaining > 0) { %>
Received:
<%= received.toFixed(8) %>
Remaining:
<%= remaining.toFixed(8) %>
<% } %>
<%= inv.address %>
<% } %>
<% if (inv.status === 'pending') { %>
Waiting for payment...
Expires in <%= mins %>:<%= String(secs).padStart(2, '0') %>
<% } else if (inv.status === 'underpaid') { %>
Underpaid - please send the remaining amount
Expires in <%= mins %>:<%= String(secs).padStart(2, '0') %>
<% } else if (inv.status === 'confirming') { %>
Payment received
Waiting for 1 network confirmation...
<% if (inv.address) { %>
View on block explorer →
<% } %>
<% } else if (inv.status === 'paid') { %>
Payment confirmed
Your plan has been activated.
<% if (inv.address) { %>
View on block explorer →
<% } %>
<% } else if (inv.status === 'expired') { %>
Payment expired
Try again
<% } %>
You can leave this page. Payments are detected and confirmed automatically.
<% } %>