d-edge / d-edge/Cardidy

Should inactive card loose precedence over active card?

Open
#98 2 comments 0 reactions 4 assignees Claimed by @torendil View on GitHub
question
Dominant language
C#
Stars
50
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Hello,

Right now the precedence rule is quite wacky. One way to improve it could be to strictly favorite an active card over an inactive one. To know which card id actually active or not we can follow the [Wikipedia's table](https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN)):

For example, we would have Visa over Switch for a card starting with 4903 and GPN over Solor for a card starting with 6334:

![image](https://user-images.githubusercontent.com/3449303/193432362-4a775b2f-df18-4004-9973-a9f57311773f.png)

Our goal is to identify a card given a card number. I guess that there are more chance to cross the path of an active card over an inactive one.

This change could introduce a breaking change.

What do you think?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.