Commit 4ebc7c840f2c628f6aa75ebd5d4ed05ec1ce78e1

Authored by Adhidarma Hadiwinoto
1 parent fd31573763
Exists in master

debug struk pada callback

Showing 1 changed file with 9 additions and 0 deletions Side-by-side Diff

lib/callback/handler-postpaid.js
... ... @@ -31,6 +31,14 @@ module.exports = (req, res) => {
31 31 translatedRc,
32 32 });
33 33  
  34 + const struk = getFromReq(req, 'struk');
  35 + if (struk) {
  36 + logger.verbose(`${MODULE_NAME} 2E480E83: Got a struk`, {
  37 + xid,
  38 + typeofStruk: typeof struk,
  39 + });
  40 + }
  41 +
34 42 report(xid, {
35 43 command: reportCommand,
36 44 trx_id: getFromReq(req, 'request_id'),
... ... @@ -55,5 +63,6 @@ module.exports = (req, res) => {
55 63 qs: req.query,
56 64 },
57 65 },
  66 +
58 67 });
59 68 };