Commit 23f8809e9335b85839ea6107215e9e297634f0fa

Authored by Adhidarma Hadiwinoto
1 parent 8ccd0140be
Exists in master

coba urut

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

partner-kospinjasa.js
... ... @@ -61,8 +61,22 @@ function topupRequestSoap(task, params, retry) {
61 61  
62 62 logger.info('Requesting to service', {url: config.h2h_out.partner, params: params});
63 63  
64   - //soapClient.apih2h.apih2hPort.billpayment({inputCheck: params}, function(err, result) {
65   - soapClient.billpayment({inputCheck: params}, function(err, result) {
  64 + soapClient.billpayment(
  65 + {
  66 + inputCheck: {
  67 + userName: params.userName,
  68 + signature: params.signature,
  69 + productCode: params.productCode,
  70 + terminal: params.terminal,
  71 + transactionType: params.transactionType,
  72 + billNumber: params.billNumber,
  73 + amount: params.amount,
  74 + bit61: params.bit61,
  75 + reff: params.reff,
  76 + timeStamp: params.timeStamp
  77 + }
  78 + },
  79 + function(err, result) {
66 80  
67 81 if (err) {
68 82 logger.warn('Error requesting service', {err: err});