Skip to content

Repository files navigation

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
classRecognizerViewController:UIViewController,PayCardsRecognizerPlatformDelegate{varrecognizer:PayCardsRecognizer!overridefunc viewDidLoad(){
super.viewDidLoad()
recognizer =PayCardsRecognizer(delegate:self, resultMode:.sync, container:self.view, frameColor:.green)}overridefunc viewWillAppear(_ animated:Bool){
super.viewWillAppear(animated)
recognizer.startCamera()}overridefunc 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
}}

About

Credit card scanning for mobile apps

Resources

Stars

197 stars

Watchers

48 watching

Forks

Releases

Packages

Contributors

Languages