Skip to content

Commit

Permalink
re:fix for IssuerApplicationData for Format Code 'A' do not match if …
Browse files Browse the repository at this point in the history
…iad is lowercase
  • Loading branch information
T-eli committed Dec 19, 2023
1 parent f7b1d65 commit 9cf4c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpos/src/main/java/org/jpos/emv/IssuerApplicationData.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9cf4c70

Please sign in to comment.