Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: How to read Magnetic Stripe(credit cards, etc) Data [closed]

Tags:

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?

like image 745
Hyangelo Avatar asked Oct 24 '11 13:10

Hyangelo


People also ask

How do you decode a magnetic stripe?

The fastest way to decode it is to run the data through ID TECH's free Parsomatic tool, which is an HTML form that can render all the pieces of data in an intelligible fashion. Every card reader has its own proprietary way of representing card data.

What information is stored on magnetic stripe of credit card?

These tracks contain the credit card account number, name, expiration date, service code, and card verification code. Credit cards primarily or exclusively use the first two tracks. The third track sometimes contains additional information such as a country code or currency code.

How do you read card strips?

A magnetic stripe card is a type of card capable of storing data by modifying the magnetism of tiny iron-based magnetic particles on a band of magnetic material on the card. The magnetic stripe, sometimes called swipe card or magstripe, is read by swiping past a magnetic reading head.

Can magnetic stripe data be stored?

The Magnetic Stripe or Magstripe cards, ATM cards or other bank cards--often have a magnetic stripe, commonly referred to as the magstripe, on the back. Data are stored on the magnetic band to be retrieved later by a card reader.


1 Answers

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.

like image 170
Hyangelo Avatar answered Sep 24 '22 06:09

Hyangelo