Throw on unsupported payment methods in issueInvoice.

Prevent checkout sessions from being created without an invoice when
the payment method switch has no matching case.
This commit is contained in:
2026-09-07 12:39:31 +02:00
parent 68503ea01d
commit 8639176af4
3 changed files with 16 additions and 7 deletions
@@ -260,10 +260,6 @@ export class OrderService {
amountFiat: deliveryCost
});
if (!shippingInvoice) {
throw new InternalServerErrorException('Failed to issue shipping invoice');
}
await this.orderRepo.update(orderId, {
shippingInvoice: { id: shippingInvoice.id },
quotedAt