fix(checkout): return the customer to the merchant when payment is detected

A merchant that supplies `redirectURL` and `redirectAutomatically` is asking for its
customer back, and the moment to do that is detection rather than final depth. The
payment is already irreversible from the payer's side, and the merchant's own page is
where an order status belongs. Waiting for the confirmation target instead parks the
customer on a payment page for as long as the coin takes.

Only the classic style acted on those fields, and it held its own copy of the rule. The
standard style had no automatic return at all, and its way back appeared only once the
invoice was confirmed. Both styles now render one shared component, so the rule lives in
one place, and the return appears as soon as the payment is seen. The receipt still
waits for confirmation, because that is when there is a settled payment to describe.

Also ignores the tsbuildinfo a typecheck leaves behind.
This commit is contained in:
jwinterm
2026-09-05 10:50:01 -04:00
parent a961096330
commit b44181d8d9
4 changed files with 81 additions and 23 deletions
+1
View File
@@ -13,3 +13,4 @@ backups/
wallets/
qr/
docker-compose.override.yml
ui/tsconfig.tsbuildinfo