Android app allowing users to use their own Visa Magstripe data to perform NFC payments in North America
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper updated api and gradle version, added magnetictrackparser dep Nov 18, 2015
src/main now works even without track1. track2 is still required. Nov 18, 2015
.gitignore excluded apk files Jan 6, 2014
LICENSE.txt added license Jan 6, 2014 added nexus 6 to list of phones I've tested with Nov 18, 2015
build.gradle updated api and gradle version, added magnetictrackparser dep Nov 18, 2015
gradlew initial version Jan 5, 2014
settings.gradle initial version Jan 5, 2014


SwipeYours allows users to input their own Visa magstripe data to perform NFC payments on payment terminals supporting the Visa MSD protocol (most NFC terminals in North America). While fully functional for payments, this app is targeted for developers trying to understand HCE (Host Card Emulation). The main activity provides a time-stamped log of the raw APDU data sent back-and-forth over the NFC interface to complete transactions.

Android Device Requirements:

  • Android version 4.4 (KitKat) or later. HCE (Host Card Emulation) was not available prior to KitKat.
  • NFC (Near Field communications).

The Google Nexus 4, 5 and 6 are all phones that meet the above requirements.

Magstripe Data Requirement:

SwipeYours parses the card data needed to complete NFC transactions via Visa MSD from the track 2 portion of the magstripe data on a Visa credit cards.

USB magnetic stripe readers are available cheaply (around $20 delivered in the US) from both Amazon and Ebay. The inexpense readers act as a USB keyboard input and require no special drivers on most desktop computers.

If saving your Magstripe data to Google Drive is not a security concern, the magstripe data can be quickly copied to your phone via an app like Google Keep.

Google Play Link

Article on SwipeYours


SwipeYours was created in Android Studio and getting it to work in Eclipse would require moving a lot of files around (i.e. I do not recommend using Eclipse). To load the project:

  • Import Project
  • Select the build.gradle file in this directory
  • Check (or leave checked) "Use default gradle wrapper"