diff --git a/apps/web/src/views/checkout.ejs b/apps/web/src/views/checkout.ejs index 597101e..16fbec0 100644 --- a/apps/web/src/views/checkout.ejs +++ b/apps/web/src/views/checkout.ejs @@ -128,7 +128,7 @@ <% } else { %> - + <% const inv = invoice; const isPending = inv.status === 'pending' || inv.status === 'underpaid' || inv.status === 'confirming'; @@ -140,110 +140,133 @@ const remainingSec = Math.max(0, Math.floor((expiresAt.getTime() - now.getTime()) / 1000)); const mins = Math.floor(remainingSec / 60); const secs = remainingSec % 60; + const pct = Math.min(100, Math.round((received / total) * 100)); + const invPlanNames = { pro: 'Pro', pro2x: 'Pro 2x', pro4x: 'Pro 4x', lifetime: 'Lifetime' }; + const invPlanLabel = invPlanNames[inv.plan] || inv.plan; %> <% if (isPending) { %> - <% } %> -
<%= inv.address %>
+ <%= inv.address %>
- Payment received
+Waiting for network confirmation
+ <% if (inv.address) { %> + View on explorer → + <% } %>Payment received
-Waiting for 1 network confirmation...
- <% if (inv.address) { %> - View on block explorer → - <% } %> <% } else if (inv.status === 'paid') { %> -Payment confirmed
+Your <%= invPlanLabel %> plan is now active.
+Payment confirmed
-Your plan has been activated.
-You can leave this page. Payments are detected and confirmed automatically.
+You can close this page. Payments are detected automatically.
<% } %>