Remove confusing atomic unit display from crypto checkout

Removed the 'Received: X / Y piconero' display that was showing raw atomic units
(piconero for XMR, koinu for DOGE) which confused users during testing.

Changes:
- Removed HTML div showing received/expected atomic units
- Removed JavaScript variables and logic for updating atomic unit display
- Users now see only human-readable cryptocurrency amounts

This improves UX by showing only meaningful amounts users can understand.
This commit is contained in:
Russell Ballestrini 2025-09-28 16:17:57 -04:00
parent 6afd6764d9
commit 2a3b007299

View file

@ -37,9 +37,6 @@
{% else %}
{% endif %}
<div id="received" style="display:none;">
<small>Received: <span id="recv-piconero"></span> / <span id="exp-piconero"></span> piconero</small>
</div>
<div style="background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 4px; padding: 15px; margin: 10px 0;">
<p><strong>Cart Total:</strong> ${{ '%.2f' % usd_total }}</p>
@ -103,9 +100,6 @@
}
const paymentId = document.getElementById('payment-id')?.textContent;
const statusEl = document.getElementById('status');
const recvEl = document.getElementById('recv-piconero');
const expEl = document.getElementById('exp-piconero');
const recvWrap = document.getElementById('received');
const expiresEl = document.getElementById('countdown');
const confirmationsEl = document.getElementById('confirmations');
const currentConfirmationsEl = document.getElementById('current-confirmations');
@ -452,12 +446,7 @@
}
const receivedKey = 'received_{{ smallest_unit_name.lower() }}';
const expectedKey = 'expected_{{ smallest_unit_name.lower() }}';
if (typeof data[receivedKey] === 'number' && typeof data[expectedKey] === 'number'){
recvEl.textContent = fmtPico(data[receivedKey]);
expEl.textContent = fmtPico(data[expectedKey]);
recvWrap.style.display = 'block';
}
// Atomic unit display removed - users see human-readable amounts only
// Don't auto-redirect - just show the invoice/product link
// User can click the link if they want to navigate away
} catch(e) {