From 5cdc10a8f6bae4df4ce314e0fb3f3a1e8d1ac0d6 Mon Sep 17 00:00:00 2001 From: Hasan Mammed-zadeh Date: Tue, 23 Apr 2019 18:03:18 +0200 Subject: [PATCH] #52 add adyen request body to a separate field --- notification/src/api/notification/notification.controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notification/src/api/notification/notification.controller.js b/notification/src/api/notification/notification.controller.js index 8690b851b..c4ff5c6a8 100644 --- a/notification/src/api/notification/notification.controller.js +++ b/notification/src/api/notification/notification.controller.js @@ -21,8 +21,9 @@ async function handleNotification (request, response) { { 'Content-Type': 'application/json' }, JSON.stringify({ notificationResponse: '[accepted]' })) } catch (e) { + e.adyenRequestBody = `${body}` logger.error(e, - `Unexpected exception occurred. Received payload from Adyen: ${body}`) + 'Unexpected exception occurred.') return httpUtils.sendResponse(response, 500) } }