Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing paypal watermark is not working as for the DOC mentioned Props #186

Open
radh82 opened this issue Oct 28, 2021 · 2 comments
Open

Comments

@radh82
Copy link

radh82 commented Oct 28, 2021

I have passed the the following Props to remove PAYPAL water mark logo its not working.

let config = [{ useCardIOLogo: false, hideCardIOLogo: false }];

CardIOModule.scanCard(config)
  .then((card) => {
    // the scanned card
     console.log("card details:: ", card);

Screenshot 2021-10-28 at 19 20 43

@sakshya73
Copy link

Hi @radh82, I was also trying this and was facing the same issue.

The solution for this is that config is an object, not an array.

FIX

let config = { useCardIOLogo: false, hideCardIOLogo: false };

@sayan-wholewave
Copy link

its an object. not a object within an array.

example:  let config = {
   useCardIOLogo: false,
   hideCardIOLogo: true,
   guideColor: '#90EE90',
   // scanInstructions:'test',
   scanExpiry: true,
   requireExpiry:true,
   // suppressManualEntry:true,
   requireCardholderName: true,
   restrictPostalCodeToNumericOnly: true,
   usePaypalActionbarIcon: false,
   detectionMode:'CardIODetectionModeCardImageAndNumber',
 };
 const scanCard = async () => {
   try {
     const card = await CardIOModule.scanCard(config);
     console.log(card);
   } catch (err) {
     console.log(err);
   }
 };

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

No branches or pull requests

3 participants