diff --git a/src/app/modules/payments/stripe.controller.ts b/src/app/modules/payments/stripe.controller.ts index 6979b81d1d..4ac56825d9 100644 --- a/src/app/modules/payments/stripe.controller.ts +++ b/src/app/modules/payments/stripe.controller.ts @@ -115,6 +115,14 @@ export const downloadPaymentInvoice: ControllerHandler<{ return StripeService.generatePaymentInvoiceUrl(payment, populatedForm) }) .map((pdfUrl) => { + logger.info({ + message: `received generated payment invoice url, redirecting to ${pdfUrl}`, + meta: { + action: 'downloadPaymentInvoice', + formId, + paymentId, + }, + }) return res.redirect(pdfUrl) }) .mapErr((error) => { diff --git a/src/app/modules/payments/stripe.service.ts b/src/app/modules/payments/stripe.service.ts index 9a7ba9c587..c7ab9e50aa 100644 --- a/src/app/modules/payments/stripe.service.ts +++ b/src/app/modules/payments/stripe.service.ts @@ -1036,6 +1036,7 @@ const _storePaymentProofInS3 = ( action: '_storePaymentProofInS3', paymentId: payment._id, objectPath, + bucket: AwsConfig.paymentProofS3Bucket, }, })