Commit 981aeec500dc1fc7c0a7a50cf5f96b5a283fef9f

Authored by Adhidarma Hadiwinoto
1 parent 01d059c2f6
Exists in master

more verbose on steps

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

... ... @@ -44,6 +44,7 @@ function createPayload(task) {
44 44  
45 45 function topupRequest(task, retry) {
46 46  
  47 + console.log('Requesting to partner:');
47 48 var payload_xml = createPayload(task);
48 49 var partner = url.parse(config.h2h_out.partner);
49 50  
... ... @@ -80,6 +81,7 @@ function topupRequest(task, retry) {
80 81 }
81 82  
82 83 function directResponseHandler(body, request_id) {
  84 + console.log('Direct Response:');
83 85 xml2js(body, function (err, result) {
84 86 if (err) {
85 87 console.log(body);
... ... @@ -109,6 +111,7 @@ function createServer() {
109 111  
110 112 res.end('OK');
111 113  
  114 + console.log('Reverse Report:');
112 115 var qs = url.parse(req.url, true).query;
113 116 console.log(qs);
114 117