SwiftLuhn
SwiftLuhn copied to clipboard
public class func cardType
do { let cardType = try SwiftLuhn.cardType(for: cc_number_to_check!) switch cardType{ case .visa:
using this code can't use cardType.
'cardType' is inaccessible due to 'internal' protection level
i added public:
public class func cardType(for cardNumber: String, suggest: Bool = false) throws -> CardType {
and it works
@Alexookah I added this change in this PR #20