CardParser
CardParser copied to clipboard
Credit Card Type Parsing for Swift
- Removed deprecated characters - Reduced indentation spacement
For most of the cards, card state is returning as invalid.
So i wired this library into SwiftValidator to enable card number validation features. most cards work fine but MasterCard and JCB always fail
Mastercard has raised it's maxlength to 19 digits like visa, so you might want to update that info. Also, I noticed the default segmentGroupings is [4, 4, 4, 4]. Visa...