"Any decent credit card system knows that if a sixteen digit credit card number starts with 4, it's a Visa."
Actually some websites are already smart enough, e.g. shopify. However I would be interesting to know why not more websites are implementing a similar system like shopify has.