![]() Regarding implementing the Luhn algorithm, check the pycard's implementation - it is quite clean and understandable. Credit Card Validator 1.0 APK File Publish Date: 2017 /5/13 Requires Android: Android 2.1+ (clair, API: 7) File Size: 1.1 MB Tested on: Android 6. """Checks a credit card number and returns a matching brand name, or INVALID if no brand matched.""" Credit Card Validator 1.3 APK description Using the credit card BIN, you can check free credit card information and find public data. Then, match each of the expressions one by one until you find a match or a brand was not found: import re I would improve the way you distinguish between cards by introducing a mapping between brands and regular expressions (like it was done in pycard module). You can check the length to be in range in one go: if not(13 <= len(str(number)) <= 16): It provides you with the following information. Enter the BIN number in the space provided for that section.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |