Commit 000766ded5ffdf0108ce34ab5a411bbeb159834e
1 parent
bcefc9c286
Exists in
master
Indikasi topUpReport message ke CORE
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
lib/reverse-report.js
1 | 1 | "use strict"; |
2 | 2 | |
3 | 3 | const xmlrpc = require('xmlrpc'); |
4 | +const stringify = require("json-stringify-pretty-compact"); | |
4 | 5 | |
5 | 6 | const config = require('komodo-sdk/config'); |
6 | 7 | const logger = require('komodo-sdk/logger'); |
... | ... | @@ -37,7 +38,8 @@ function create() { |
37 | 38 | partner.report({ |
38 | 39 | trx_id: value.REQUESTID, |
39 | 40 | rc: partnerRc[value.RESPONSECODE] || '40', |
40 | - message: value.MESSAGE, | |
41 | + //message: value.MESSAGE, | |
42 | + message: 'topUpReport: ' + stringify(value); | |
41 | 43 | sn: (value.SN || '').replace(/;$/, '') || st24.extractSnFromMessage(value.MESSAGE), |
42 | 44 | amount: value.PRICE || st24.extractPriceFromMsg(value.MESSAGE), |
43 | 45 | balance: st24.extractBalanceFromMsg(value.MESSAGE, config.balance_pattern), |