SwiftLuhn icon indicating copy to clipboard operation
SwiftLuhn copied to clipboard

public class func cardType

Open alexookah opened this issue 6 years ago • 1 comments

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 avatar Sep 18 '18 10:09 alexookah

@Alexookah I added this change in this PR #20

andre991 avatar Jan 08 '19 18:01 andre991