angular-payments icon indicating copy to clipboard operation
angular-payments copied to clipboard

Formatting does not work in default Android browser

Open onelifemedia opened this issue 10 years ago • 6 comments

While using the default browser on android, it seems that the formatting doesn't work.

Example: The card formatting does not add spaces on every 4th digit. The expiry formatting does not add a slash.

Using Android v4.4.4, with Internet v2.0.341100600.122953

onelifemedia avatar Feb 22 '15 04:02 onelifemedia

+1 Can't make sense of the code to fix myself, anyone have any ideas?

iceman3000 avatar Mar 28 '15 12:03 iceman3000

I'm going to be working on adding formatting to angular-credit-cards today.

I don't have an Android device to test on but I'll be running a thorough end to end suite on Sauce Labs using Protractor.

bendrucker avatar Mar 28 '15 13:03 bendrucker

Gah! The one day that I'm away from my desk.

I created a work around. I'll send a message if I remember what I did

onelifemedia avatar Mar 28 '15 13:03 onelifemedia

Sure! Input masking/formatting is super tricky. Even Stripe Checkout with a bunch of talented engineers and a ton of users has easily reproducible bugs in production :smile:!

bendrucker avatar Mar 28 '15 15:03 bendrucker

Give angular-credit-cards 2.3 a shot. I've added formatting that does a reasonably good job of getting the cursor position right without breaking out of Angular's native input handling events. It's quite consistent and simple for now which I think is best until I can really devote the time to aggressive cross-browser testing of a vanilla JS approach.

bendrucker avatar May 04 '15 14:05 bendrucker

I've just implemented angular payments with stripe.js on my site.. Works good on desktop browser and iphone however on android the payment fields are not validating the user input.

On android there is no input restrictions on the credit card or cvc field, the the biggest problem is the "/" is not automatically added to the expiry date field. Had a customer type in "1619" and wondering why the pay button is still disabled..

the website is http://babykoa.la

minkdawg avatar Jul 16 '16 00:07 minkdawg