From 6fa9eed4c93f25bf23ca91e2d76f063f0bf0c6a5 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Wed, 24 Sep 2025 11:46:02 -0400 Subject: [PATCH] Update crypto checkout for out-of-stock refund scenarios and left-align QR code - Add specific messaging for out-of-stock-refunded status (full refund, no fee) - Add specific messaging for out-of-stock-no-refund status - Add out-of-stock item to refund policy lists - Left-align QR code instead of centering it --- make_post_sell/templates/crypto_checkout.j2 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/make_post_sell/templates/crypto_checkout.j2 b/make_post_sell/templates/crypto_checkout.j2 index d951f28..05d70f4 100644 --- a/make_post_sell/templates/crypto_checkout.j2 +++ b/make_post_sell/templates/crypto_checkout.j2 @@ -11,9 +11,8 @@ {% else %} {% set amount_fmt = '%.8f' % amount_crypto %} {% endif %} -
-
-
+
+
Scan with wallet app
@@ -372,24 +371,36 @@

✓ Refund address configured

{{ refund_address }}

+ {% if status == 'out-of-stock-refunded' %} +

📦 Out of Stock - Full Refund Issued

+

This item became unavailable after your payment. You received a full refund with no restocking fee since this was not your fault.

+ {% else %}

If you make a payment error, you'll receive an automatic refund minus a 9% restocking fee that covers network costs and prevents abuse.

  • Overpayment: Fulfilled & excess refunded minus fee
  • Underpayment: Refunded minus fee
  • Late payment: Refunded minus fee if sent after the minute expiry
  • +
  • Out of stock: Full refund (no fee - not your fault)
  • Wrong address: Cannot be recovered
+ {% endif %}
{% else %}

⚠️ No refund address configured

+ {% if status == 'out-of-stock-no-refund' %} +

📦 Out of Stock - No Refund Possible

+

This item became unavailable after your payment, but without a refund address configured, the funds were transferred to the shop's cold storage.

+ {% else %}

Without a refund address, all payment errors result in lost funds:

  • Underpayments are kept
  • Overpayments are kept
  • Late payments after {{ ((expires_at - now) // 60000) if expires_at and (expires_at - now) > 0 else 'expiry' }} minutes are kept
  • +
  • Out of stock: Funds transferred to shop (no refund possible)
  • Wrong address payments cannot be recovered
+ {% endif %}

Consider configuring a refund address for future purchases.

{% endif %}