card-io / card.io-iOS-SDK

card.io provides fast, easy credit card scanning in mobile apps
Other
2.29k stars 554 forks source link

Is there a way to get the card type by number without scanning? #286

Open colbs255 opened 6 years ago

colbs255 commented 6 years ago

General information

Issue description

If a user enters their card number manually (no scanning), I would like to get the card type using card IO. Is there a way to do this?

popwarfour commented 6 years ago

try this, let card = CardIOCreditCardInfo() card.cardNumber = manuallyEnteredCardNumber let cardType = card.cardType