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

Doesn't work on Chrome for IOS #13

Open
bfleishman opened this issue Mar 3, 2016 · 9 comments
Open

Doesn't work on Chrome for IOS #13

bfleishman opened this issue Mar 3, 2016 · 9 comments

Comments

@bfleishman
Copy link

Love this plugin!

I have a small issue with it though. I have an implementation of this that works successfully on Safari and Chrome on a desktop. However, it doesn't capture any card swipes on Chrome for iOS. I can't tell where it is breaking since there are no developer tools for Chrome for iOS.

Safari on iOS works just fine though. Furthermore, if I use the developer tools on Chrome for Windows, on my desktop, and change my device type to iPAD, it works just fine.

Any idea why this may not be working on Chrome for iOS?

@CarlRaymond
Copy link
Owner

I'm afraid I don't know what's going on. I don't have an iOS device, so I would have to use a simulator as well. A quick search on Chrome event handling on iOS shows similar problems related to click events (which the plugin doesn't use), so it looks like there are some differences in how events are handled there.

You might try commenting out the .blur() call on line 213, and see if that makes any difference. Also, you could try running the test suite (run a local web server, and open up /test/index.html in a browser. Knowing which tests fail, if any, could help. If everything passes, the first step would be to try to write a test that fails on iOS and works everywhere else, to isolate the specific issue.

The plugin binds to keypress events instead of keyup and keydown, because that seemed more reliable. Possibly it would work with keydown or keyup on iOS.

@CarlRaymond
Copy link
Owner

Out of curiosity, what card reader are you using with iOS? I didn't think any would work.

@bfleishman
Copy link
Author

Thanks for the previous possible workaround. I have yet to try it, but I will and will report my findings.

As far as the reader goes. I actually took a lightning connector to USB cable which Apple makes for connecting a camera to an iOS device, and plugged a USB card scanner Into it. It is a basic keyboard emulator card scanner. And it works perfect!

Do you know of a way to send the collected card data that your plugin grabs over to a processor? Are there cc processors that work that way?

Best Regards,

Brian Fleishman

@CarlRaymond
Copy link
Owner

I think it's very unlikely that you'll find a processor that will just accept a list of card numbers you collect this way. From what I know of it, the payment card industry (PCI) is very security-conscious (and there are new PCI standards coming into effect now), and your merchant bank will want you to use their software and hardware, and show that you're handling data securely at every step.

The real use case for this plugin isn't credit cards; it's for private-use cards, like employee or student ID cards. As in, you want to reserve a conference room or take attendance by swiping cards. But everyone has credit cards in their pockets, so it will parse them out-of-the-box as a demo.

@CarlRaymond CarlRaymond mentioned this issue Mar 29, 2016
@zofo264
Copy link

zofo264 commented Jun 16, 2016

It's works in Chrome and IE on my end but I'm getting this error in FireFox: TypeError: tracks[1] is undefined.

@treed593
Copy link

@bfleishman I am doing something similar using https://stripe.com/docs/stripe.js Stripe is super easy to use and this plugin works well with them for tokenizing the card then creating the charge. Feel free to reach out to me if you have any questions

@jshow
Copy link

jshow commented Feb 2, 2017

sorry to pile on this issue

@treed593 , I'm trying to get this library to work with stripe checkout - can you share any wisdom ? please contact me via the email address on https://github.com/jshow. thanks

@treed593
Copy link

treed593 commented Feb 2, 2017

@jshow can do, I will actually share some sample code I have with you tonight to that email

@yehudahkay
Copy link

HI, have any of you found android or ios scanners that will work with this? thank you

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

6 participants