You are on page 1of 4

parameter:

-isCardPresent
--parameter: tidak ada parameter
---return: object json berisi ATQA,SAK,CSN,CSNlen
---contoh:
{
"ATQA": "FFFFFF"--->string
"SAK": "20"--->string
"CSN": "FFFFFF"--->string
"CSNlen": 06--->string
}
----------------------------------------------------------------------------
-isMyCard
--paramater: object json berisi cardType,cardInfo,ATQA,SAK,CSN,CSNlen
---return: string json "OK" jika berhasil.
---contoh parameter:
{
"ATQA": "FFFFFF"--->string
"SAK": "20"--->string
"CSN": "FFFFFF"--->string
"CSNlen": "06" --->string
"cardType": 5 ---> integer
"cardInfo": "XXXX" --->string
}
----------------------------------------------------------------------------
-getGPSInfo
--parameter: tidak ada
---return : data dari gps hardware (GPRMC)
---contoh return : "$GPRMC,.,..,." ---> string
---------------------------------------------------------------------------
-cardTagging
--parameter: object json berisi ,ATQA,SAK,CSN,CSNlen
--return: object json berisi
bank_display_name,tarif_name,bankCode,card_info,bank_id
---contoh paramater klien:
{
"ATQA": "FFFFFF"--->string
"SAK": "20"--->string
"CSN": "FFFFFF"--->string
"CSNlen": 06--->string
}
---contoh return server:
{
"bank_display_name":"DEFAULT" ->string
"tarif_name":"DEFAULT" ->string
"bankCode":"DEFAULT" ->string
"card_info":"DEFAULT" ->string
"bank_id":0 ->integer
}
---------------------------------------------------------------------------
-writeX
--paramater: berisi string merepresentasikan hex.
---return: string writeX
---contoh:
---"params":"FFFF"
---"result":"writeX OK"
--------------------------------------------------------------------------
-readX
--parameter: tidak ada
--return: hex string
---contoh return: "result":"FF06B0"
--------------------------------------------------------------------------
-showMessage
--parameter: array json berisi pesan yang diinginkan dan waktu yg diinginkan untuk
menampilkan pesan tsb
--return: "check your message in display"
---contoh parameter : ["Hello World",5000] --> time dalam miliseconds.
--------------------------------------------------------------------------
-beep
--parameter: array json berisi jumlah beep, durasi beep, dan interval tiap beep
--return: "listen your beep"
---contoh parameter: [4,100000,10000] membunyikan piezo buzzer 4 kali dengan durasi
100 milisecond tiap beep dan interval tiap beep 10 miliseconds
--------------------------------------------------------------------------
-getTariff
--parameter: bankcode -> string
--return: object json berisi bank_tarif_name,tarif_id,tarif
---contoh return:
{
"bank_tarif_name":"DEFAULT"
"tarif_id": 0
"tarif":2.500 --> float
}
--------------------------------------------------------------------------
-getDiscount
--parameter: bankcode -> string
--return: object json discountId, discountName, discountType, dan discountValue
---contoh return:
{
"discountId": 0
"discountName": "DEFAULT"
"discountType": "DEFAULT"
"discountValue": 2.500 -->float
}
--------------------------------------------------------------------------
-getCardUserData
--parameter: array dengan tiap indexnya adalah object json
--return: userdata dalam bentuk string.
---contoh parameter
[
{
"bankId":0
"cardType":"DEFAULT"
},
{
"ATQA": "FFFFFF"--->string
"SAK": "20"--->string
"CSN": "FFFFFF"--->string
"CSNlen": 06--->string
}
]
-------------------------------------------------------------------------
-saveCardUserData
--parameter: array dengan tiap indexnya adalah object json
--return: "OK"
---contoh parameter
[
{
"userData":"DEFAULT"
"bankId":0
"cardType":"DEFAULT"
},
{
"ATQA": "FFFFFF"--->string
"SAK": "20"--->string
"CSN": "FFFFFF"--->string
"CSNlen": 06--->string
}
]
-------------------------------------------------------------------------
-getMachineBussinessId
--parameter : tidak ada
--return: number id machine dalam bentuk string
-------------------------------------------------------------------------
-saveUserData,saveMon,saveError,saveEvent
--parameter : message dalam bentuk string
--return : "OK
-------------------------------------------------------------------------
-activateCard
--parameter: tidak ada
--return: object json berisi temp dan templen
---contoh return:
{
"temp": "FFAABBCC80"
"len_temp": 5
}
------------------------------------------------------------------------
-deactivateCard
--parameter:tidak ada
--return : "OK"
------------------------------------------------------------------------
-debit
---contoh:parameter:
[
{
"bankId" : integer,
"debitValue" : double/float
"dataref" : string
},
{
"ATQA" : string
"SAK" : integer
"CNS" : string
"CNSlen": integer
}
]
---contoh return:
{
"trx_time": "DEFAULT"
"uuid" : "DEFAULT"
"pan" : "DEFAULT"
"balance_before": 999.0
"balance_after":999.0
}
-------------------------------------------------------------------------
-checkBalance
--contoh parameter:
{
"kode_bank": 5
"ATQA" : string
"SAK" : integer
"CNS" : string
"CNSlen": integer
}
--contoh return:
{
"balance" : 12345.5
"pan": "DEFAULT"
}
------------------------------------------------------------------------
-updateStatus
--parameter : message dalam bentuk string
--return : "OK"
------------------------------------------------------------------------
-msg_*
--parameter:tidak ada
--return: "check your display"
------------------------------------------------------------------------
-msg_tapoutsummary,
--parameter: ["bankName","pan"]
--return: "check your display"
------------------------------------------------------------------------
-msg_debitsummary
--parameter: ["bankName","tariffRed","pan","prevBal","debitVal","afterBal"]
--return: "check your display"
------------------------------------------------------------------------
-sendAPDUContact
--contoh parameter:
{
"apdu": "FFAABB80"
"slotSam": 4
}
--contoh return: "FF08BC"
-----------------------------------------------------------------------
-sendAPDUContactless
--contoh parameter: "FFAABB80"
--contoh return: "FF08BC"
-----------------------------------------------------------------------
-tarif
--parameter:tidak ada
--return: json object semua list tarif dan variablenya.
-----------------------------------------------------------------------
-discount
--parameter:tidak ada
--return: json object semua list discount dan variablenya.