Credit card scanning for mobile apps
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2cf4f2e Feb 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AppIcon appicon Jul 29, 2017
PayCardsRecognizerExample.xcodeproj readme Nov 8, 2017
PayCardsRecognizerExample new cards Feb 7, 2018
Source/PayCardsRecognizer.framework paycards Feb 7, 2018
.gitignore podspec Jul 21, 2017
LICENSE.md update podspec Jul 21, 2017
PayCardsRecognizer.podspec spec Feb 7, 2018
README.md readme Nov 8, 2017

README.md

PAY.CARDS RECOGNIZER

Source Code: iOS, C++

iOS SDK

Sample app

See PayCardsRecognizerExample project

Installation

If you use CocoaPods:
pod 'PayCardsRecognizer'
If you don't use CocoaPods:
  1. Download the latest version of the SDK (PayCardsRecognizer.framework).
  2. Add the PayCardsRecognizer.framework to your Xcode project.
  3. Add the PayCardsRecognizer.framework to Embedded Binaries.

Usage

import PayCardsRecognizer

class RecognizerViewController: UIViewController, PayCardsRecognizerPlatformDelegate {

	var recognizer: PayCardsRecognizer!
	
	override func viewDidLoad() {
	    super.viewDidLoad()
	    recognizer = PayCardsRecognizer(delegate: self, resultMode: .sync, container: self.view, frameColor: .green)
	}
	
	override func viewWillAppear(_ animated: Bool) {
	    super.viewWillAppear(animated)
	    
	    recognizer.startCamera()
	}
	    
	override func viewDidDisappear(_ animated: Bool) {
	    super.viewDidDisappear(animated)
	    
	    recognizer.stopCamera()
	}
	
	// PayCardsRecognizerPlatformDelegate
	
	func payCardsRecognizer(_ payCardsRecognizer: PayCardsRecognizer, didRecognize result: PayCardsRecognizerResult) {
		result.recognizedNumber // Card number
		result.recognizedHolderName // Card holder
		result.recognizedExpireDateMonth // Expire month
		result.recognizedExpireDateYear // Expire year
	}

}