I got a credit card reader that plugs into the microphone jack from my bank, and they provide apps for android and MacOS to receive payments this way. I don’t have any of these systems nor the need to accept payments, but I am curious about the device. I can record the sound on my laptop. So: Is there a Linux program that can decode this signal?
Thanks to the other answers I found the right words to search for and found mslib via the authors blog and, after some adjustments, got it to read data from my reader.
The library comes with a small test program that can read files created by:
arecord -c 1 -N -r48000 -f S16_LE -i -v
This is probably doing the same thing as the Square audio-input based card readers; using the equivalent of a tape head to read the information as audio. Someone has written some code that's available on GitHub for decoding this data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With