Skip to content

The open-source code for the card.io-Android-SDK: provides fast, easy credit card scanning in mobile apps

License

Notifications You must be signed in to change notification settings

arda971/card.io-Android-source

 
 

Repository files navigation

Build Status

card.io logo

Credit card scanning for Android apps

This repository contains everything needed to build the card.io library for Android.

What it does not yet contain is much in the way of documentation. 😿 So please feel free to ask any questions by creating github issues -- we'll gradually build our documentation based on the discussions there.

Note that this is actual production code, which has been iterated upon by multiple developers over several years. If you see something that could benefit from being tidied up, rewritten, or otherwise improved, your Pull Requests will be welcome! See CONTRIBUTING.md for details.

Brought to you by
PayPal logo

Using card.io

If you merely wish to incorporate card.io within your Android app, simply download the latest official release from https://github.com/card-io/card.io-Android-SDK. That repository includes complete integration instructions and sample code.

Dev Setup

Prerequisites

  • Current version of the Android SDK. (obviously)
  • Android NDK. We've tested with r10e. At minimum, the Clang toolchain is required.

First build

There are a few bugs in the build process, so these steps are required for the first build:

  1. clone this repo
  2. $ cd card.io-Android-source
  3. init its dmz submodule: git submodule sync; git submodule update --init --recursive
  4. $ cp local.properties.example local.properties
  5. Edit local.properties with your env (Assuming you've defined $ANDROID_NDK correctly, run $ echo "$ANDROID_NDK" "$ANDROID_SDK"
  6. $ ./gradlew clean assembleDebug

Hints & tricks.

Testing

Setup

Requires a recording of a capture session.

  1. Connect an Android 4.0 (or better) device. (You can also use a device back to Gingerbread, but some autotests won't work).
  2. Load a card recording by running: $ adb push test-data/recording_320455133.550273.zip /storage/sdcard0/card_recordings/recording_320455133.550273.zip

Running

  1. $ cd card.io-Android-source
  2. $ ./gradlew connectedAndroidTest

That's it! You should see the app open and run through some tests.

Un-official Release

$ ./gradlew clean :card.io:assembleRelease Cleans and builds an aar file for distribution.

The official release process is described separately.

Contributors

card.io was created by Josh Bleecher Snyder.

Subsequent help has come from Brent Fitzgerald, Tom Whipple, Dave Goldman, Jeff Brateman, Roman Punskyy, Matt Jacunski, Dan Nizri, and Zach Sweigart.

And from you! Pull requests and new issues are welcome. See CONTRIBUTING.md for details.

About

The open-source code for the card.io-Android-SDK: provides fast, easy credit card scanning in mobile apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 46.5%
  • Java 30.2%
  • C 15.2%
  • CMake 7.1%
  • Ruby 0.5%
  • Makefile 0.3%
  • Shell 0.2%