diff --git a/src/app/modules/payments/stripe.controller.ts b/src/app/modules/payments/stripe.controller.ts index 4ac56825d9..b8e2c919ba 100644 --- a/src/app/modules/payments/stripe.controller.ts +++ b/src/app/modules/payments/stripe.controller.ts @@ -123,7 +123,8 @@ export const downloadPaymentInvoice: ControllerHandler<{ paymentId, }, }) - return res.redirect(pdfUrl) + return res.status(StatusCodes.OK).json({ message: pdfUrl }) + // return res.redirect(pdfUrl) }) .mapErr((error) => { logger.error({