25

The actual app is actually a web app but since my first impression is that there is no way to do this with a normal (android) web browser right now, I figured this might be possible with a WebView.

Are there card reader attachments out there that have APIs/SDKs for android?

2 Answers 2

26

We have found a viable solution. MagTek offers a device that is similar with the one being used by SquareUp. The device is slightly larger and heavier but they offer SDKs for Android, iOS and Windows Phones. The android SDK can be found and downloaded here:

http://www.magtek.com/support/software/programming_tools/

look for SCRA SDK

You can also contact them directly as our company did so they can provide you the latest SDKs.


Update:

Also tried idtech's UniMag mobile card reader:

http://www.idtechproducts.com/products/mobile-readers/112.html

I tested this on a Samsung Galaxy Tab 10.1" running Android 3.1. Works as advertised.

Update 2: Our app that uses this can now be found on the android store(but it isn't really useful to anyone else aside from our enterprise customers). Essentially, the app is a native wrapper application with a WebView and the communication between webapp and wrapper is abstracted and performed using javascript. In theory, anyone can use your wrapper with their webapp as long as the webapp knows the API however I am not permitted to release the API nor any specific implementation details. I suppose if anyone is interested, a good 'ol decompiler will reveal the implementation.

6
  • hello Hyangelo, I am wondering if you have a prototype for that? Aug 16, 2012 at 22:26
  • I do not have a prototype but unimag and magtek includes a sample app with their SDK that you can compile and install on your device.
    – Hyangelo
    Aug 17, 2012 at 12:04
  • Is your app available on the android store? If so I'd love to download it and see it. Looking to do the exact same thing.
    – M Charles
    Feb 25, 2014 at 1:26
  • idtechproducts is worst. They ask to buy the dev kit, and even if for development.
    – greja
    Mar 11, 2015 at 9:57
  • @Hyangelo I'm in the similar situation, looking for Reader + SDK. MagTek looks promising but according to their [iOS] SDK they do not provide method to read complete credit card number, only last 4 digits. What was your experience on that, were you able to read to complete card data in your project? I know there are rules for processing this information, but the our intention is to send this data to stripe for tokenizing. Sep 28, 2015 at 8:56
0

Square ( https://squareup.com/ ) uses custom card reader pluggable into headphones socket - so hardware is definitely available. I would speculate that must be bluetooth cardreaders.

3
  • 2
    Yes, I am aware about square but I don't think they are offering an SDK(even if it is paid/commercial). I know they are reading the data via the microphone jack but I'm not sure how hard it is to decode the data or how to to begin with.
    – Hyangelo
    Oct 24, 2011 at 13:30
  • They acquire audio stream ( PCM ) and then do some magical signal processing - presumably using some fourrier transforms or whatever else. I think it is possible to google up some information on this (square published something) - from old C/S books treating magnetic drives Oct 24, 2011 at 18:26
  • Yes, I am aware of this as well but we are looking for a commercial SDK instead so we don't have to spend time doing what you've just described. And we just found one from MagTek(see my answer above). Thanks for the suggestion though. If it were up to me this would be the more interesting route.
    – Hyangelo
    Oct 24, 2011 at 18:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.