Hacker News new | ask | show | jobs
by alberth2 5215 days ago
No, this is a major bug because they are trying to authenticate the credit card before accepting the input in the form field. Meaning, if you type "1234567891234567" that won't work, yet a test credit card # does work.
2 comments

This isn't a bug.

The validation that they are doing when you enter the card is just Luhn validation.§

This is basically just to ensure that the numbers entered into the field "at least have the possibility of being a valid credit card". No processing of the card is being done at this stage.

§ - http://en.wikipedia.org/wiki/Luhn_algorithm

They aren't authenticating the card. They are doing a checksum on the digits entered using the luhn algorithm.