Commit 35d3e5057e3b1a66e5e3a98862885fe3fae32d5d
1 parent
5a947e4006
Exists in
master
pakai signature
Showing 2 changed files with 12 additions and 1 deletions Side-by-side Diff
partner-kospinjasa.js
... | ... | @@ -48,9 +48,12 @@ function topupRequest(task, retry) { |
48 | 48 | amount: remoteProduct[1], |
49 | 49 | bit61: createBillNumber(task.destination), |
50 | 50 | reff: task.requestId, |
51 | - timeStamp: strftime('%d-%m-%Y %H:%M:%S', new Date()); | |
51 | + timeStamp: strftime('%d-%m-%Y %H:%M:%S', new Date()), | |
52 | 52 | } |
53 | 53 | |
54 | + var signature = createSignature(args, config.h2h_out.password); | |
55 | + args.signature = signature; | |
56 | + | |
54 | 57 | client.billpayment(args, function(err, result) { |
55 | 58 | if (err) { |
56 | 59 | logger.warn('Error requesting service', {err: err}); |
test.js