Skip to content

Commit 9d470ae

Browse files
authored
add unionpay card
add china Unionpay card
1 parent bdf7c75 commit 9d470ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Credit_Card_Validator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def company(self):
1414
comp = 'Master Card'
1515
elif str(self.card_no).startswith('37'):
1616
comp = 'American Express Card'
17+
elif str(self.card_no).startswith('62'):
18+
comp = 'Unionpay Card'
1719
elif str(self.card_no).startswith('6'):
1820
comp = 'Discover Card'
1921
elif str(self.card_no).startswith('35'):

0 commit comments

Comments
 (0)