PayCards_iOS

by faceterteam

faceterteam / PayCards_iOS

Credit card scanning for mobile apps

148 Stars 38 Forks Last release: Not found Other 44 Commits 10 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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
}

}

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.