cordova plugin add https://github.com/hitmacreed/Cordova-Blink-Card-Reader.git
ionic cordova plugin https://github.com/hitmacreed/Cordova-Blink-Card-Reader.git
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
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
}
);