try {
// byte [] Aidvisa = new byte [] {(byte) 0xa0, 0x00, 0x00, 0x00, 0x03, 0x10, 0x10};
byte [] apducmdvisa = new byte [] {
(byte) 0xa0, // aid (Visa Application Aid)
(Byte) 0x00,
(Byte) 0x00,
(Byte) 0x00,
(Byte) 0x03,
(Byte) 0x10,
(Byte) 0x10
}; < /p>
Code: Select all
try {
//select the payment application on the card
byte[] responseSelect = card.executeAPDU(0x00, 0xA4, 0x04, 0x00, ApduCMDVisa, 0x00);
// Check if the SELECT command was successful
if (isSuccess(responseSelect)) {
log("Visa application selected successfully.");
} else {
log("Failed to select Visa application.");
return;
}
} catch (RFIDException e) {
log("Error executing APDU: " + e.getMessage());
e.printStackTrace();