Commit 9de9fde1f7e46fe1b5a1d4f2498cbe1025c3d15c

Authored by Adhidarma Hadiwinoto
1 parent 40eead5f75
Exists in master

curly

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

... ... @@ -23,15 +23,15 @@ function createPayload(task) {
23 23 var timestamp = strftime('%H%M%S');
24 24  
25 25 var payload = {
26   - datacell: {
27   - perintah: 'charge',
28   - oprcode: task['remoteProduct'],
29   - userid: config.h2h_out.userid,
30   - time: timestamp,
31   - msisdn: task['destination'],
32   - ref_trxid: task['requestId'],
33   - sgn: calculateSignature(config.h2h_out.userid, config.h2h_out.password, task['destination'], timestamp)
34   - }
  26 + datacell: [
  27 + { perintah: 'charge'},
  28 + {oprcode: task['remoteProduct']},
  29 + {userid: config.h2h_out.userid},
  30 + {time: timestamp},
  31 + {msisdn: task['destination']},
  32 + {ref_trxid: task['requestId']},
  33 + {sgn: calculateSignature(config.h2h_out.userid, config.h2h_out.password, task['destination'], timestamp)}
  34 + ]
35 35 };
36 36  
37 37 console.log(payload);