问题
Is it possible to read the credit card details (name, number, expiry) of a Visa payWave card via NFC on a Samsung Galaxy Nexus? What about other NFC-enabled credit cards?
If it's not possible, is there some way to retrieve a unique ID from the card?
Also, any references or example code would be a great help.
回答1:
There are at least 2 Android apps that can already do this: Squareless and Electronic Pickpocket RFID.
Some references:
- Explanation of how to do it: http://blog.saush.com/2006/09/08/getting-information-from-an-emv-chip-card/
- Java code: http://code.google.com/p/javaemvreader/
- This may be helpful, too: http://cardpeek.googlecode.com/svn-history/r23/trunk/dot_cardpeek_dir/scripts/emv.lua
- See also this question: How do I read the PAN from an EMV SmartCard from Java
回答2:
Triangle.io also has an API that allows you to do this free of charge and you can integrate it in your own application. You can download the sample application from Google Play.
Disclaimer: I work for triangle.io
来源:https://stackoverflow.com/questions/9648224/reading-visa-paywave-credit-card-details-via-nfc-on-android