From 4ebc7c840f2c628f6aa75ebd5d4ed05ec1ce78e1 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <adhisimon@gmail.com> Date: Fri, 18 Jun 2021 14:45:28 +0700 Subject: [PATCH] debug struk pada callback --- lib/callback/handler-postpaid.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/callback/handler-postpaid.js b/lib/callback/handler-postpaid.js index ac489c3..ae677df 100644 --- a/lib/callback/handler-postpaid.js +++ b/lib/callback/handler-postpaid.js @@ -31,6 +31,14 @@ module.exports = (req, res) => { translatedRc, }); + const struk = getFromReq(req, 'struk'); + if (struk) { + logger.verbose(`${MODULE_NAME} 2E480E83: Got a struk`, { + xid, + typeofStruk: typeof struk, + }); + } + report(xid, { command: reportCommand, trx_id: getFromReq(req, 'request_id'), @@ -55,5 +63,6 @@ module.exports = (req, res) => { qs: req.query, }, }, + }); }; -- 1.9.0