final static private byte LOG_OP_TOPUP = (byte) 0x22;
final static private byte LOG_OP_ISSUE = (byte) 0x33;
// CONSTRUCTOR
public PaymentTerminal(){
TerminalFactory tf;
CardTerminals ct;
List<CardTerminal> cs;
Card card;
loadBlacklist();
CARD_LEGIT=false;
cID="0";
sg = Signature.getInstance(Signature.ALG_DES_MAC8_ISO9797_M2, false);
try {
cp = Cipher.getInstance("AES/ECB/NoPadding");
} catch (Exception e) {
Utilities.writeToLogs(home,"[E] "+e.toString());
}
try {
tf = TerminalFactory.getDefault();
ct = tf.terminals();
cs = ct.list(CardTerminals.State.CARD_PRESENT);
if (cs.isEmpty()){
Utilities.writeToLogs(home,"[E] No terminal with a card found!");
System.out.println("[-] No terminal with a card found!");
return;