diff --git a/partner-datacell.js b/partner-datacell.js index a7edb6e..146ba6e 100644 --- a/partner-datacell.js +++ b/partner-datacell.js @@ -23,15 +23,15 @@ function createPayload(task) { var timestamp = strftime('%H%M%S'); var payload = { - datacell: { - perintah: 'charge', - oprcode: task['remoteProduct'], - userid: config.h2h_out.userid, - time: timestamp, - msisdn: task['destination'], - ref_trxid: task['requestId'], - sgn: calculateSignature(config.h2h_out.userid, config.h2h_out.password, task['destination'], timestamp) - } + datacell: [ + { perintah: 'charge'}, + {oprcode: task['remoteProduct']}, + {userid: config.h2h_out.userid}, + {time: timestamp}, + {msisdn: task['destination']}, + {ref_trxid: task['requestId']}, + {sgn: calculateSignature(config.h2h_out.userid, config.h2h_out.password, task['destination'], timestamp)} + ] }; console.log(payload);