mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 22:16:27 +00:00
Merge branch 'zainal' of https://github.com/mohamadihsan/topuponline
This commit is contained in:
@@ -61,6 +61,14 @@ const cardHistory = async (req, res) => {
|
||||
|
||||
// parsing data from card
|
||||
// PARSING DISINI ZEN
|
||||
let date = new Date((parseInt(data.slice(0,8),16) + 946684800) * 1000)
|
||||
let nominal = parseInt(data.slice(8, 16), 16)
|
||||
let mid = data.slice(16, 20)
|
||||
let tid = data.slice(20,24)
|
||||
let istopup = parseInt(data.slice(24, 26), 16) == 0 ? 'Topup' : 'Deduct'
|
||||
|
||||
//Parsing ini di foreach sebanyak list Data req API
|
||||
|
||||
|
||||
result = {
|
||||
code: "00",
|
||||
|
||||
Reference in New Issue
Block a user