car

CardScanner

A credit card scanner

Showing:

Popularity

Downloads/wk

0

GitHub Stars

135

Maintenance

Last Commit

3mos ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

CardScanner

Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 13 or newer
  • Swift 5

Installation

CardScanner is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CardScanner'

To Use:

import CardScanner 

And simple call

let scannerView = CardScanner.getScanner { card, date, cvv in
    self.resultsLabel.text = "\(card) \(date) \(cvv)"
}
present(scannerView, animated: true, completion: nil)

Currently working with:

  • Number 15 or 16 digits
  • CVV 3 digits
  • Date MM/YYYY or MM/YY

Do not forget add NSCameraUsageDescription to your Info.plist

You can custom the texts using the scannerView.:

  • hintTopText
  • hintBottomText
  • buttonConfirmTitle
  • buttonConfirmBackgroundColor

Author

Narlei Moreira, narlei.guitar@gmail.com

If do you like, give your ⭐️

License

CardScanner is available under the MIT license. See the LICENSE file for more info.

Pay me a coffee:

paypal

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial