Android Question Trying my luck again - NFC - reading Credit Card Help is needed

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
hi,
i've tried and also posted a post in Jobs (for hiring a freelancer)
i need to read a credit card using NFC
i've searched everywhere but couldn't find an answer
i need a demo or a programmer to provide this code (with payment)
the need is very simple:
1. read track2
2. get all tags (or tags i will provide the list to the programmer)
all in one go of course
in B4A

any one can help with a sample or writing it ?
thanks
 

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
BTW
if you look at google play you can find a few that manage to read the card properly and return the card number etc so it is doable
this frustrates me even more
i feel defeated
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
here's another piece of info
i see that there are a few ready to use4 libraries in github for example
the problem is it may require wrapping
since i cant do that (being rookie) can anyone help?
here are a few sample posts




?
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
[sigh] you are such a disappointment.

the result were hex values i couldn't interpret ...

those are your tags! the tags you listed and wanted to see. now you say you can't interpret them. as a credit card expert, you must have looked at emv's documentation. you knew what the tags were.

then tried to implement it in a small program but there were too many errors on declarations ... i am defeated ...

i told you, no more "i'm so helpless and frustrated and i can't do anything". enough already.

all you have to do is take erel's nfc example and run it. then add 1 step and run it. then add the next step and run it. etc, etc.

if you can't get erel's example to run, what do you think you're going to do with 2000 lines of my code? and it takes many lines of code to reach track 2. that it takes less than 1 second to obtain the data does not mean it only involves 1 line of code.

export what you have done so far as a .zip archive and upload it. i am happy to take a look, modify if applicable and return it. if what you have done is something other than erel's basic nfc app, i don't want to see it. there is no reason not to start with erel's example and take the tiniest of first steps. as per outlined in the file.

according to public records, you've been a member for 10 years. what did you think took place here?

let's code!šŸ‘
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
[sigh] you are such a disappointment.



those are your tags! the tags you listed and wanted to see. now you say you can't interpret them. as a credit card expert, you must have looked at emv's documentation. you knew what the tags were.



i told you, no more "i'm so helpless and frustrated and i can't do anything". enough already.

all you have to do is take erel's nfc example and run it. then add 1 step and run it. then add the next step and run it. etc, etc.

if you can't get erel's example to run, what do you think you're going to do with 2000 lines of my code? and it takes many lines of code to reach track 2. that it takes less than 1 second to obtain the data does not mean it only involves 1 line of code.

export what you have done so far as a .zip archive and upload it. i am happy to take a look, modify if applicable and return it. if what you have done is something other than erel's basic nfc app, i don't want to see it. there is no reason not to start with erel's example and take the tiniest of first steps. as per outlined in the file.

according to public records, you've been a member for 10 years. what did you think took place here?

let's code!šŸ‘
dear Pal,

you can't even start to imagine how much i appreciate those of you who come forward and contribute from their time & knowledge to assist other people - like myself

i will look into the results once more to see if i can get any understanding from it

sorry i don't meet your minimal requirements, but i stated from the beginning that this task seems to be beyond my knowhow and that's why i needed the help
yes i'm a member since 2012
yes i have a few apps i wrote (simple but do what is meant to do)
that does not make me a specialist in that topic and as said i'm a rookie
this is not my main business - i specialize in other stuff (where there i'm proud to admit i'm consider one of the top globally)
so i'm not ashamed to admit i don't know everything and i need help

as said i appreciate people who are lucky to be able to help others, this is not obvcious
if you feel i'm not worthy i can understand but it is too late to educate me (i'm too old)

i will keep on trying to learn,
your app showed you can do that but did not show the way or how to so thanks for showing but it didn't teach anything

i'm not here to argue with anyone
in my field of expertise i do help others as much as i can
here it is me asking for help...

have a great day, and in spite of all i do appreciate your responses and input
 
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
OK- we managed to get to track #2 on my Visa credit card to reveal the info in track #2. Not simple as a wrapper for PDOL (once extracted) needs to be created that should be included in one of the commands issued from the contactless device (in this case my cell phone with NFC capability) to the Visa card. The response from the card, when parsed with a super parser written by @drgottjr, shows the track 2 information. We spent most of the weekend on figuring out track 2 information on my Visa Card but need to investigate cards other than just Visa SA. But we are getting somewhere and only some other 285 countries (as per @drgottjr) to try and figure out as the PDOL wrapper contains amongst others country specific information. And then all the different cards in each county.

@Zeev Goldstein , a great challenge that you have scratched open here. Thanks for your comms and support during the weekend. Same goes to @drgottjr . Spend endless hours with me to try and figure out how to get to track 2 on my Visa Card.

@Erel , thanks for the NFC lib. It works great with the Async methods and Wait For to get the answers from the credit card and then getting detailed info by making use of @drgottjr 's parser.

All credit to @drgottjr 's work, @Zeev Goldstein 's
endless questions and believe in an answer and his drive to try and get to Track 2. Nothing that cannot be done with B4A and some member participation.

For me not anything about any financial gain. Just trying to figure out how to talk "sensibly" to my credit card. And by reading a lot this whole weekend long on the web and plenty of comms between us and compiling change after change. But we eventually got there. No other lib required other than @Erel 's NFC library and I seem to recall bitconverter.

@drgottjr
@Zeev Goldstein
@Erel

My heroes for the weekend!
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Thank you Johan, and all other contributors, sorry but I'm not on that list as i didn't do anything other than asking and asking and providing some cc knowledge.

I don't think there is a difference between countries as people are traveling written their cards so visa from sa should be identical in structure to visa from israel or us or uk

Maybe mc and each schem is different but i doubt it as emv is one common standard for all
That i know for sure and from inside

I think your work will conyribute to all b4a users as currently as far as i sesrched no one had gone into that topic in details

Once again, i know sometimes i was asking and made a few 'angry' with me
I deeply appreciate your good will and efforts.

Johan - bravo!

Zeev
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Guys, with all due respect - there was NO we in this effort as I didn't really contribute other than asking...
It is all 100% Johan to crack the visa card reading as said full track2.
big time investment on his side
So many many thanks Johan
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Please share the final with the people !
Firstly, it's not my right as it is not my code, it is 100% Johan's

Secondly, it is not finished. It reads only visa cards track2, it needs to be finished

Maybe Johan will decide to do it or give permission to someone else to finish it and make it a public resourse.

I commit to provide all professional (cards wise) assstance and info
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Indeed!
I think google and apple is transparent
The question is can you integrate it all into one module or class as a function that will be called and return track2, expiry,tags (in a csv structured string) i think this will make it a complete thing leaving (at least for now) diners and discover
 
Upvote 0
Top