From cc20773ddab7e354a0ea15bc3415c5966b1921af Mon Sep 17 00:00:00 2001 From: jwinterm Date: Mon, 13 Apr 2026 10:03:53 -0400 Subject: [PATCH] fix: auto-redirect on payment detection (0-conf), not just confirmation The checkout UI only redirected when status was 'confirmed' (after all N confirmations). Now also redirects on 'payment_detected' (0-conf in mempool). This matches BTCPay's behavior for BTC/LTC where the customer is redirected to the store immediately on detection. --- ui/components/btcpay-classic-checkout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/components/btcpay-classic-checkout.tsx b/ui/components/btcpay-classic-checkout.tsx index 33d303d..3b0ed53 100644 --- a/ui/components/btcpay-classic-checkout.tsx +++ b/ui/components/btcpay-classic-checkout.tsx @@ -130,7 +130,7 @@ export default function BtcpayClassicCheckout({ : null; useEffect(() => { - if (status !== "confirmed" || !redirectUrl || !redirectAutomatically) { + if ((status !== "confirmed" && status !== "payment_detected") || !redirectUrl || !redirectAutomatically) { return; } const timer = window.setTimeout(() => {