/Cordova-Blink-Card-Reader

Cordova Blink SDK Plugin for scanning and OCR of credit or payment cards(Debit Cards), NOT OFFICIAL PLUGIN

Primary LanguageJava

Cordova-Blink-Card-Reader (Android ONLY)

Example

Installation

 cordova plugin add https://github.com/hitmacreed/Cordova-Blink-Card-Reader.git 
 ionic cordova plugin https://github.com/hitmacreed/Cordova-Blink-Card-Reader.git

Info

Blink SDK Plugin for scanning and OCR of credit or payment cards(Debit Cards). Get your lincense on BLINK WEBSITE and go developer dashboard to get your Base64 lincense.

Android Official SDK && Ionic Official Plugin

Usage Ionic >= 3 and cordova

Declare in your component in ionic 3 or 4, cordova not needed

 declare var BlinkCardReader: any;

Usage in ionic >= 3

    BlinkCardReader.read(
      
      function (objResult) {
        console.log(objResult);
         /*
         objResult = {
         cardNumber:'xxxx xxxx xxxx xxxx',   
         cardgetOwner:'USERNAME', 
         cardExpDate:'12-12-2019',
         cardCvv: 'xxx' //OPTIONAL RESULT 
         }
         */
      },

      function (error) {
          console.log(error);
      },
      {
        Cvv : false, // true || false
    	androidKey : "xxxxxxxxxxxx..." // Base64 license, get on Blink Developer DashBoard
      }
   );

Usage in cordova

    cordova.plugins.BlinkCardReader.read(
      
      function (objResult) {
        console.log(objResult)
         /*
         objResult = {
         cardNumber:'xxxx xxxx xxxx xxxx',   
         cardgetOwner:'USERNAME', 
         cardExpDate:'12-12-2019',
         cardCvv: 'xxx' //OPTIONAL RESULT 
         }
         */
      },

      function (error) {
          console.log(error);
      },
      {
        Cvv : false, // true || false
    	androidKey : "xxxxxxxxxxxx..." // Base64 license, get on Blink Developer DashBoard
      }
   );