diff --git a/make_post_sell/templates/crypto_checkout.j2 b/make_post_sell/templates/crypto_checkout.j2
index c59abd5..6a3b709 100644
--- a/make_post_sell/templates/crypto_checkout.j2
+++ b/make_post_sell/templates/crypto_checkout.j2
@@ -11,12 +11,15 @@
{% else %}
{% set amount_fmt = '%.8f' % amount_crypto %}
{% endif %}
-
-
+
+
+
+
Send exactly {{ amount_fmt }} {{ coin_symbol }} to this address:
+
{{ address }}
+
-
-
Send exactly {{ amount_fmt }} {{ coin_symbol }} to this address:
-
{{ address }}
@@ -140,21 +143,11 @@
// Remove payment elements to prevent double-sending (for received status)
function removePaymentElements() {
const buttonGrid = document.querySelector('div[style*="grid-template-columns: 1fr 1fr 1fr"]');
- const qrContainer = document.getElementById('payment-qr');
- const cryptoAmount = document.getElementById('crypto-amount');
- const cryptoAddress = document.getElementById('crypto-address');
+ const paymentGrid = document.querySelector('div[style*="grid-template-columns: auto 1fr"]');
- // Remove QR code and payment instructions
- if (qrContainer && qrContainer.parentNode) {
- qrContainer.parentNode.style.display = 'none';
- }
-
- // Remove payment amount and address elements
- if (cryptoAmount && cryptoAmount.parentNode) {
- cryptoAmount.parentNode.style.display = 'none';
- }
- if (cryptoAddress) {
- cryptoAddress.style.display = 'none';
+ // Remove the entire payment grid (QR code and instructions)
+ if (paymentGrid) {
+ paymentGrid.style.display = 'none';
}
// Remove all payment buttons completely
@@ -173,23 +166,13 @@
// Replace action buttons with invoice link for terminal statuses
function replaceButtonsWithInvoiceLink(invoiceUrl) {
const buttonGrid = document.querySelector('div[style*="grid-template-columns: 1fr 1fr 1fr"]');
- const qrContainer = document.getElementById('payment-qr');
- const cryptoAmount = document.getElementById('crypto-amount');
- const cryptoAddress = document.getElementById('crypto-address');
+ const paymentGrid = document.querySelector('div[style*="grid-template-columns: auto 1fr"]');
if (!buttonGrid) return;
- // Remove QR code and payment instructions
- if (qrContainer && qrContainer.parentNode) {
- qrContainer.parentNode.style.display = 'none';
- }
-
- // Remove payment amount and address elements
- if (cryptoAmount && cryptoAmount.parentNode) {
- cryptoAmount.parentNode.style.display = 'none';
- }
- if (cryptoAddress) {
- cryptoAddress.style.display = 'none';
+ // Remove the entire payment grid (QR code and instructions)
+ if (paymentGrid) {
+ paymentGrid.style.display = 'none';
}
// Clear all buttons