Skip to content
forked from vkeepe/card.io

Scan Credit Card Number - iOS & Android Cordova plugin

License

Notifications You must be signed in to change notification settings

jimmyhsu/card.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

card.io iOS & Android plug-in for Cordova

This plug-in exposes card.io credit card scanning.

Android SDK. iOS SDK.

Integration instructions

The PayPal SDK Cordova/Phonegap Plugin adds support for the CardIO iOS & Android platform. It uses the native CardIO library. Cordova plugin management will set up all the required capabilities/frameworks for the project. The only bit left for you to do is to add necessary files, as described below.

  1. Follow the official Cordova documentation to install command line tools or Phonegap.
  2. Create project, add plugin and platforms:
   $ cordova create ScanCard com.mycompany.scancard "ScanCard"
   $ cd ScanCard
   $ cordova platform add ios
   $ cordova platform add android
   //npm
   $ cordova plugin add cordova-plugin-keepe-cardio
   OR
   //git
   $ cordova plugin add https://github.com/vkeepe/card.io.git
  1. Follow Your app integration section below.
  2. Run cordova run ios to build and the project.

Sample HTML + JS

  1. In ScanCard/www/index.html add the following to lines after <p class="event received">Device is Ready</p>: