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

Question : How to use card.io for android app with cordova #42

Closed
xuanlocnet opened this issue Sep 1, 2016 · 6 comments
Closed

Question : How to use card.io for android app with cordova #42

xuanlocnet opened this issue Sep 1, 2016 · 6 comments

Comments

@xuanlocnet
Copy link

Dear,
I have a problem when using this plugin.
After i install, i can able to open the camera, but after that nothing happen, even though i tried with other visa cards and i use also visa card on google but it still not able to capture or get any information from these credit cards.
So, my question here about : Does i need to install any other plugin and any way to use it or just install this plugin is enough?
Because i tried to use also example code of this plugin, but it still show the camera to me and nothing next.
I really need your support.
Thanks.

@lolptdr
Copy link
Contributor

lolptdr commented Sep 2, 2016

What errors do you get in console? What version of Cordova? What version of Cordova-android? What version of Android did you test on? How did you implement the code for this plugin? Be aware of runtime permissions on Android M: http://cordova.apache.org/docs/en/latest/guide/platforms/android/plugin.html#android-permissions

@xuanlocnet
Copy link
Author

My device is Asus Zenfone 5 with Android version 5.0
This is ionic info :
Cordova CLI: 6.2.0
Ionic Framework Version: 1.1.0
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS
Node Version: v4.4.7

It still show the camera and it still can focus to credit card, but it not show any error or return anything to me.
I mean that when i run this code, it open camera and still keep on showing camera and i can saw credit card on camera screen but nothing happen after that. It still keep on camera screen.

image 2

image 2

@dgoldman-pdx
Copy link
Member

dgoldman-pdx commented Sep 5, 2016

@xuanlocnet the particular card in your images does not have a valid credit/debit card number.

These numbers use the Luhn algorithm to generate a check digit. (You can easily find online validators for Luhn check-digits.) For a card number beginning 400012345678901, the check digit should be 7 rather than the 0 in your sample card.

So card.io is not recognizing this particular card because the card number is not valid.

(If you are also seeing failures with other cards, there might be different reasons that card.io does not recognize those other cards.)

@lolptdr
Copy link
Contributor

lolptdr commented Sep 7, 2016

@xuanlocnet: See my forked commits if this helps #44

@xuanlocnet
Copy link
Author

Thank you @dgoldman-ebay and @lolptdr for your supporting, it work for me.
This is a awesome plugin.

@CHOMNANP
Copy link

@xuanlocnet: Appreciate if you could share how do you get this working with IONIC?
I tried and it doesn't work.

Thanks,
Punleu

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

4 participants