This plug-in exposes card.io credit card scanning.
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.
- Follow the official Cordova documentation to install command line tools or Phonegap.
- 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
- Follow Your app integration section below.
- Run
cordova run ios
to build and the project.
- In
ScanCard/www/index.html
add the following to lines after<p class="event received">Device is Ready</p>
: