Commit 2b3124a9671ee009a321a7438675ca6b2d5b05f6

Authored by Adhidarma Hadiwinoto
1 parent 35d3e5057e
Exists in master

url dan logger

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

partner-kospinjasa.js
... ... @@ -38,7 +38,7 @@ function topupRequest(task, retry) {
38 38  
39 39 var remoteProduct = task.remoteProduct.split(',');
40 40  
41   - soap.createClient(url, function(err, client) {
  41 + soap.createClient(config.h2h_out.partner, function(err, client) {
42 42 var args = {
43 43 userName: config.h2h_out.userid,
44 44 productCode: remoteProduct[0] ,
... ... @@ -54,6 +54,7 @@ function topupRequest(task, retry) {
54 54 var signature = createSignature(args, config.h2h_out.password);
55 55 args.signature = signature;
56 56  
  57 + logger.info('Requesting to service', {url: config.h2h_out.partner, args: args});
57 58 client.billpayment(args, function(err, result) {
58 59 if (err) {
59 60 logger.warn('Error requesting service', {err: err});