Skip to content

Commit 3d4ee06

Browse files
Merge pull request geekcomputers#350 from cyjstifler/patch-1
add unionpay card
2 parents 2370350 + 9d470ae commit 3d4ee06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Credit_Card_Validator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def company(self):
1616
comp = 'Master Card'
1717
elif str(self.card_no).startswith('37'):
1818
comp = 'American Express Card'
19+
elif str(self.card_no).startswith('62'):
20+
comp = 'Unionpay Card'
1921
elif str(self.card_no).startswith('6'):
2022
comp = 'Discover Card'
2123
elif str(self.card_no).startswith('35'):

0 commit comments

Comments
 (0)