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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user