devnied / EMV-NFC-Paycard-Enrollment

A Java library used to read and extract data from NFC EMV credit cards (Android/PCSC).
Apache License 2.0
1.48k stars 593 forks source link

HolderNames #68

Open Azimuts opened 3 years ago

Azimuts commented 3 years ago

It looks that holdernames ( tested with a visa credit card ) and PC/SC always are returned as null ( cc number & expiration data ok ) . I know the holdernames cant be read via nfc, but commonly with pc/sc the holdername is got reading the application ( tested for example with very old libraries https://github.com/sasc999/javaemvreader )

  1. The EMVParsers calls to

    byte[] info = template.get().getProvider()
                                        .transceive(new CommandApdu(CommandEnum.READ_RECORD, index, afl.getSfi() << 3 | 4, 0).toBytes());
  2. After Calls to byte[] cardHolderByte = TlvUtil.getValue(pData, EmvTags.CARDHOLDER_NAME), but always returns null.

Any idea or way to get the holder name ? Thank u in advance!

gjq commented 3 years ago

It looks that holdernames ( tested with a visa credit card ) and PC/SC always are returned as null ( cc number & expiration data ok ) . I know the holdernames cant be read via nfc, but commonly with pc/sc the holdername is got reading the application ( tested for example with very old libraries https://github.com/sasc999/javaemvreader )

  1. The EMVParsers calls to
byte[] info = template.get().getProvider()
                                      .transceive(new CommandApdu(CommandEnum.READ_RECORD, index, afl.getSfi() << 3 | 4, 0).toBytes());
  1. After Calls to byte[] cardHolderByte = TlvUtil.getValue(pData, EmvTags.CARDHOLDER_NAME), but always returns null.

Any idea or way to get the holder name ? Thank u in advance!

Hello, I wonder if your problem has been solved? I also have this problem. I look forward to your reply