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

Missing spaces #241

Closed
fogush opened this issue Aug 10, 2016 · 1 comment
Closed

Missing spaces #241

fogush opened this issue Aug 10, 2016 · 1 comment

Comments

@fogush
Copy link

fogush commented Aug 10, 2016

Expected behavior

Credit card numbers (for fields with .payment('formatCardNumber'))
It should include a space between every 4 digits for all numbers

Actual behavior

For non-valid card numbers (I didn't check everything, maybe a reason is in something else) the space is not added. For example, a credit card number with all zeros will be '0000000000000000' instead of '0000 0000 0000 0000'. The same for numbers like '1111111111111111', '9999999999999999' and others.
I have found some old version on this site: https://stripe.com/blog/jquery-payment. It doesn't have this issue

Steps to reproduce

Open the demo (http://stripe.github.io/jquery.payment/example/)
Enter 0000000000000000 in the first field ("Card number formatting")

@jenanwise
Copy link
Contributor

Hi there @fogush. jquery.payment doesn't know how to format unknown numbers. 0000 etc are not real card numbers. You can see some similar old closed issues.

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

2 participants