From 9de9fde1f7e46fe1b5a1d4f2498cbe1025c3d15c Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <gua@adhisimon.org> Date: Wed, 22 Jul 2015 14:52:49 +0700 Subject: [PATCH] curly --- partner-datacell.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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); -- 1.9.0