This commit is contained in:
2025-12-06 08:45:59 +03:30
parent 63c62c4bab
commit 683406a396
4 changed files with 83 additions and 26 deletions
@@ -85,7 +85,7 @@ export class PaymentGatewayService {
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
throw new BadRequestException(`Failed to connect to payment gateway: ${errorMessage}`);
}
}
}
// If gateway is not supported, throw an error
throw new BadRequestException(`Unsupported payment gateway: ${String(gateway)}`);