braintree / credit-card-type

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

Visa does not support 13 ? #43

Closed prijuly2000 closed 7 years ago

prijuly2000 commented 7 years ago

The library does not support 13 digit visa cards?

skunkworks commented 7 years ago

@prijuly2000 To our knowledge, 13-digit Visa cards are no longer in circulation. Please let us know if you've seen one and would like our library to support it.

kryten87 commented 7 years ago

I think you're probably right that there are no more 13-digit Visa cards in circulation, but...

I'm working with a payment gateway which, in it's testing documentation (http://developer.merchante-solutions.com/#/payment-gateway-testing), includes a 13-digit Visa card among the test cases.

I doubt that a 13-digit Visa card will ever come up, but I'm going to hack together a work around so that I don't get surprised when I go through their certification process :stuck_out_tongue_closed_eyes:

crookedneighbor commented 7 years ago

@Kryten0807 We're still not going to include 13 digit visas in this library, but you are welcome to fork the repo and make the modification.

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.