#_alchemi_
1 messages · Page 1 of 1 (latest)
Hi, what exactly checks you are performing? Are you verifying the card number length base off its IIN/BIN?
Hey. I'll listen for a keyup or paste event. On keyup I'll scan the digits to check against Card properties I've stored. If the digits match a card's IIN I'll Initialise that card which has a stored maxLength property. Some sites say that one IIN range will have a single max Length, others say that this could be a range of say 13-19 digits. If the inputed number length matches the initialised card's specified maxLength I'll run a luhn check against it.
It works well for the info I've stored on VISA, Mastercard and AMEX cards, but Diners club Carte Blanche cards with IIN range of 300-305 seem to either be 14 or 16 digits long from various sources and I'd prefer to be rock solid on this info. Wonderin how you guys navigate that
Hmm so you are not using Stripe SDK and wonder how Stripe js does that? It sounds like you scan the card number directly and that's a bit worrisome in PCI DSS perspective