Commit 73c4fa04349086c3636ea524b188cf7cc583d03e
1 parent
cb466883ce
Exists in
master
apih2hPort
Showing 1 changed file with 7 additions and 4 deletions Side-by-side Diff
partner-kospinjasa.js
... | ... | @@ -55,16 +55,19 @@ function topupRequest(task, retry) { |
55 | 55 | args.signature = signature; |
56 | 56 | |
57 | 57 | logger.info('Requesting to service', {url: config.h2h_out.partner, args: args}); |
58 | - client.apih2h.billpayment(args, function(err, result) { | |
58 | + | |
59 | + client.apih2h.apih2hPort.billpayment(args, function(err, result) { | |
59 | 60 | if (err) { |
60 | 61 | logger.warn('Error requesting service', {err: err}); |
61 | 62 | callbackReport(task.requestId, '68', 'something wrong'); |
62 | 63 | return; |
63 | 64 | } |
64 | 65 | |
65 | - logger.info('Got result', {result: result}); | |
66 | - logger.info('Result: ' + result.outputParameter.resultCode.$value + ' - ' + result.outputParameter.resultDesc.$value); | |
67 | - callbackReport(task.requestId, '68', 'got result'); | |
66 | + var responseMessageToST24 = result.outputParameter.resultCode.$value + ' - ' + result.outputParameter.resultDesc.$value; | |
67 | + | |
68 | + logger.info('Got result: ' + responseMessageToST24, {result: result}); | |
69 | + | |
70 | + callbackReport(task.requestId, '68', responseMessageToST24); | |
68 | 71 | }); |
69 | 72 | }); |
70 | 73 | } |