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.44k stars 586 forks source link

Required help to implement EMV NFC Card scanner #28

Closed TusharKhandekar1 closed 6 years ago

TusharKhandekar1 commented 6 years ago

I am trying to implement NFC EMV Card Scanner functionality using your GIt hub project. https://github.com/devnied/EMV-NFC-Paycard-Enrollment

But I am not able to understand , How will I get card number , Exp Month , Exp year value from your library.

Because I have added compile gradle line in my project compile 'com.github.devnied.emvnfccard:library:2.1.1'

and other code which was mentioned in Github portal -

IProvider prov = new YourProvider(); // Create parser (true for contactless false otherwise) EMVParser parser = new EMVParser(prov, true); // Read card EMVCard card = parser.readEmvCard();

What can I mentioned in your provider file.

I have tried with adding Provider and EMV Parser file from your github library into my Project but it will get crash after running this code.

Your Playstore application APK is working properly for my card so can you please suggest or provide some sample code for Provider and EMV Praser file.

devnied commented 6 years ago

You can try the sample Application to help you. An implementation of IProvider is available here https://github.com/devnied/EMV-NFC-Paycard-Enrollment/blob/master/sample/src/main/java/com/github/devnied/emvnfccard/provider/Provider.java