Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Maestro #35

Open
nook-scheel opened this issue Jan 1, 2017 · 4 comments
Open

Maestro #35

nook-scheel opened this issue Jan 1, 2017 · 4 comments

Comments

@nook-scheel
Copy link

Number not detected 5840 4061 8755 3286

@cjihrig
Copy link
Owner

cjihrig commented Jan 1, 2017

Other relevant information if we decide to support this:

IIN range: 50, 56-58, 6
Card number length: 12-19
More sample card numbers: 6759649826438453, 6799990100000000019
PIN length: 4-6 (I think)

@arb
Copy link
Contributor

arb commented Jan 2, 2017

Isn't this the kind of thing you'd just add a custom cc for?

@cjihrig
Copy link
Owner

cjihrig commented Jan 2, 2017

It could go both ways. I added custom CCs for things like merchant specific gift cards. Technically, everything, including the big cards like Visa and MasterCard, could be a custom CC. The Maestro card is the real deal (look, it's even on the Wikipedia page). I just don't know how widely used it is, of if it needs to be natively supported here.

@dtsn
Copy link

dtsn commented Apr 3, 2017

+1 For Maestro support.

The majority of banks in here in the UK have stopped issuing Maestro so it seems like a dying format. However, we still see a few come through our system.

This is my implementation, it's very difficult to test but let me know if you see anything wrong.

const Maestro = { cartTypes: { MAESTRO: { cardType: 'MAESTRO', cardPattern: /^(?:6|5[068])[0-9]{12,19}/, partialPattern: /^6|^5[068]/, cvvPattern: /^\d{4,6}$/, } } };

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants