From 9cf4c703ebb681755c66527c3efece7ebd1d7602 Mon Sep 17 00:00:00 2001 From: "T.Elias" Date: Tue, 19 Dec 2023 16:34:24 +0100 Subject: [PATCH] re:fix for IssuerApplicationData for Format Code 'A' do not match if iad is lowercase --- jpos/src/main/java/org/jpos/emv/IssuerApplicationData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jpos/src/main/java/org/jpos/emv/IssuerApplicationData.java b/jpos/src/main/java/org/jpos/emv/IssuerApplicationData.java index 7148d09cf2..5b32ff9a9a 100644 --- a/jpos/src/main/java/org/jpos/emv/IssuerApplicationData.java +++ b/jpos/src/main/java/org/jpos/emv/IssuerApplicationData.java @@ -70,7 +70,7 @@ public IssuerApplicationData(String hexIAD) { //Therefore, the length of the Issuer Application Data is 18 bytes and for // M/Chip Advance it may be 18, 20, 26, or 28. unpackMCHIP(iad); - } else if (len == 32 && iad.startsWith("0F") && iad.startsWith("0F", 32)) { + } else if (len == 32 && (iad.startsWith("0F") || iad.startsWith("0f")) && (iad.startsWith("0F", 32) || iad.startsWith("0f", 32))) { // EMV_v4.3_Book_3 // C7.2 Issuer Application Data for Format Code 'A' unpackEMVFormatA(iad);