maxkramer / SwiftLuhn

Debit/Credit card validation port of the Luhn Algorithm in Swift
MIT License
135 stars 27 forks source link

Can't detect card type #8

Closed hoangtam101 closed 6 years ago

hoangtam101 commented 6 years ago

Hi I have problems when using this source if let cardType = cardNumber.suggestedCardType() { print("Fond Card Type") } But when I input card number is: 5555 5555 5555 4444 This code can't get card type

Please help me.

Thanks,

hoangtam101 commented 6 years ago

Fixed it by remove space characters Thanks,