Open
Bug 1470175
Opened 6 years ago
Updated 2 years ago
Card number field should include spaces to group digits
Categories
(Firefox :: WebPayments UI, enhancement, P3)
Firefox
WebPayments UI
Tracking
()
NEW
People
(Reporter: epang, Unassigned)
References
Details
(Whiteboard: [webpayments-reserve])
Attachments
(1 file)
(deleted),
image/png
|
Details |
If known, we should should create spaces based on credit card type and number.
Updated•6 years ago
|
Whiteboard: [webpayments] [ux] → [webpayments-reserve] [ux]
Reporter | ||
Comment 1•6 years ago
|
||
As noted in spec:
The credit card number automatically splits to match the format of the card type. For example, Visa card splits number in every 4 digits. Only number characters will be allowed in this field and the CVV Field.
Reporter | ||
Updated•6 years ago
|
Whiteboard: [webpayments-reserve] [ux] → [webpayments] [ux]
Updated•6 years ago
|
Whiteboard: [webpayments] [ux] → [webpayments-reserve]
Updated•6 years ago
|
Flags: qe-verify+
QA Contact: hani.yacoub
Updated•6 years ago
|
status-firefox62:
affected → ---
Summary: Specify if the card number field should include spaces → Card number field should include spaces to group digits
Comment 3•6 years ago
|
||
I started to take a look onto this issue. I drafted a prototype at https://jsfiddle.net/dpino/qbt46ra3/1/
Sam commented on IRC there are libraries for detecting cc-number patterns. I don't know whether those libraries are already part of the codebase or should be imported somehow. I think a library would definitely be very convenient for easing maintenance. Also it seems detecting a pattern is not so trivia since there's not a 1-to-1 correspondence between a prefix and a pattern (some cards of the same prefix can have several patterns).
Regarding UI, I think it would be convenient to place a credit-card icon at the right of the input field. Then as a pattern is detected the icon changes (See: https://baymard.com/blog/credit-card-field-auto-format-spaces). Perhaps that should be a different issue.
Updated•2 years ago
|
Severity: normal → S3
Comment 4•2 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•