SwiftLuhn
SwiftLuhn copied to clipboard
Maestro and Rupay card type detection support
Can we have the card type detection for maestro and rupay cards.
looks like on line 119 (SwiftLuhn.swift)
for i in CardType.amex.rawValue...CardType.jcb.rawValue {
}
This iteration should go upto CardType.mir to support the card validation for maestro and rupay.
@nagarro-mohitpadalia thanks for pointing out the issue! Is this something you'd be able to pick up? When the code was implemented originally, CaseIterable didn't exist. Perhaps we can leverage that?