-
Notifications
You must be signed in to change notification settings - Fork 685
formatting doesn't add spaces or / on Android #46
Comments
It looks like doesn't accept the spaces. Anyone with a good solution? |
Workaround: Use a jQuery masking plugin, or if using bootstrap, the JASNY extensions have a masking plugin. |
This is a huge issue. Not only does the formatting not work, for some reason it adds a space to the beginning of the CVC field when you focus on it for the first time. |
This is related to a chromium bug where the keycode is always zero for keyup/keydown events. But that bug has been open for over a year, soooo... I don't know if/when chromium will ever fix it. |
This appears to be the related chromium issue: https://code.google.com/p/chromium/issues/detail?id=118639 |
The following lines need to be updated (add input as event type for android support Lines 367 to 390): $.payment.fn.formatCardCVC = function() { $.payment.fn.formatCardExpiry = function() { $.payment.fn.formatCardNumber = function() { $.payment.fn.restrictNumeric = function() { |
Fixed in #102 and available in v1.1.0. https://github.com/stripe/jquery.payment/releases/tag/v1.1.0 |
Chrome v 26.0.1410.58
I have a report that it doesn't work on the stock Android browser either.
The text was updated successfully, but these errors were encountered: