braintree / credit-card-type

A library for determining credit card type
MIT License
980 stars 154 forks source link

Support 13-digit Visa card length #64

Closed reestolonio closed 6 years ago

reestolonio commented 6 years ago

Would you mind supporting 13 in .lengths of Visa card type? Verified by Visa requires testing for 13-digit Visa card.

https://github.com/braintree/credit-card-type/blob/2b36b2405ee1dd2dc9802db1553795d8dcb811c5/index.js#L45

crookedneighbor commented 6 years ago

13 digit visas are no longer in circulation, so it does not make sense to include them in this module. If it's a requirement for your use case, I recommend forking the library instead.

crookedneighbor commented 6 years ago

v6.2.0 allows you to adjust the configuration for card brands. See https://github.com/braintree/credit-card-type#adding-card-types for documentation.

reestolonio commented 6 years ago

Great, @crookedneighbor .