braintree / credit-card-type

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

Mastercard type returning as Maestro #121

Closed navarrojandg closed 3 years ago

navarrojandg commented 3 years ago

General information

Issue description

Ayden docs table shows 6771798025000004 as Mastercard but credit-card-type returns as Maestro.

Here is the failed test snippet:

    Expected: "Mastercard"
    Received: "Maestro"

      81 |       for (const cardNumber of testCards) {
      82 |         payment.update({cardNumber});
    > 83 |         expect(payment.cardType).toBe('Mastercard');
         |                                  ^
      84 |       };
EJohnF commented 3 years ago

Just face the same issue. @navarrojandg did you find something about this problem?

But I also can't find confirmation that it's actually a mastercard

crookedneighbor commented 3 years ago

We'll bring it up with our cards team. It's possible that Mastercard has new bins but we were not made aware.

crookedneighbor commented 3 years ago

According to the Mastercard docs: https://www.mastercard.us/en-us/business/issuers/get-support/simplified-bin-account-range-table.html

The range 6771790000-6771799999 is marked as Maestro.

I think Adyen's test card is wrong here then. I'm going to close this for now, but if you can get us more information about why Adyen thinks that's a Mastercard bin range, feel free to comment here.