A
A
Alexey Vinogradov2021-06-16 12:10:34
NFC
Alexey Vinogradov, 2021-06-16 12:10:34

How to get public bank card details via nfc?

Hello everyone, there is a task to read the card number using nfc. We are
writing an application on React Native and there is such a library.

I read the documentation and realized that in order to get data on the card, you need to send an APDU request SELECT 2PAY.SYS.DDF01, threw in the following code:

try {
      await NfcManager.requestTechnology([NfcTech.IsoDep]);
      let resp = await NfcManager.transceive([
        0x00, 0xa4, 0x04, 0x00, 0x31, 0x50, 0x41, 0x59, 0x2e, 0x53, 0x59, 0x53,
        0x2e, 0x44, 0x44, 0x46, 0x30, 0x31,
      ]);
      console.log('resp', resp);
    }

But in response I get - resp [103, 0]
And then I got confused, what do these bytes mean? (if you translate them into hex, it turns out 6700 - Wrong length
Maybe someone has an example of requests in the form of 0xFF to get a PAN map
And in general, the question can be who implemented this case and can poke into the documentation or code examples?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question