Skip to content

Commit

Permalink
feat(CreditCard): add support for Discover issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
nrzky committed Mar 14, 2024
1 parent e1acd46 commit 52e89c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/CreditCard/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ const Issuers: CardIssuer[] = [
maxLength: 19,
cvcLength: 3,
},
{
name: 'discover',
title: 'Discover',
pattern: /^(6011|65\d{2}|64[4-9]\d)\d{12,15}$/,
simplePattern: /^(6011|64[4-9]|65)/,
groupPattern: /(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,3})?/,
digits: 16,
maxLength: 19,
cvcLength: 3,
},
{
name: 'troy',
title: 'Troy',
Expand Down

0 comments on commit 52e89c6

Please sign in to comment.