Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

ionic 2 problem .please help #61

Open
mrosama opened this issue Mar 9, 2017 · 0 comments
Open

ionic 2 problem .please help #61

mrosama opened this issue Mar 9, 2017 · 0 comments

Comments

@mrosama
Copy link

mrosama commented Mar 9, 2017

scan camera is open but not get any value in console .also not enter inside CardIO.scan function
my code :
import { CardIO } from 'ionic-native';

scancard():any{
CardIO.canScan().then((res: boolean) => {
console.log('begin');
if (res) {

let options = {
requireCardholderName: true,
requireExpiry: true,
requireCCV: true,
requirePostalCode: true,
scanInstructions: "Scan your card",
scanExpiry: true,
scanCardHolderName: true,
keepApplicationTheme:true,
guideColor: '#12be76',
hideCardIOLogo: true,
useCardIOLogo:false,
};

CardIO.scan(options).then((data) => {
console.log("begin Scan");
console.log(data);
alert(data);

}, err => {
console.log("Error message :" + err);
// An error occurred
});
}

  });

}
///any help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant