Invoice: Improve zero amount invoice handling (#6199)

This is for the checkout page to properly redirect paid invoices with no payment methods (e.g. free invoices with zero amount) to either the receipt page or redirect URL. Only fall back to 404 if there is neither.

Fixes #6123.
This commit is contained in:
d11n
2024-09-09 04:05:03 +02:00
committed by GitHub
parent 73dcde7780
commit 841f41da2f
4 changed files with 24 additions and 9 deletions

View File

@@ -55,6 +55,7 @@ namespace BTCPayServer.Tests
options.AddArguments($"window-size={windowSize.Width}x{windowSize.Height}");
options.AddArgument("shm-size=2g");
options.AddArgument("start-maximized");
options.AddArgument("disable-search-engine-choice-screen");
if (Server.PayTester.InContainer)
{
// Shot in the dark to fix https://stackoverflow.com/questions/53902507/unknown-error-session-deleted-because-of-page-crash-from-unknown-error-cannot