Latest 0.0.1
Homepage https://github.com/imepay/IMEPayQRScanner_iOS
License MIT
Platforms ios 8.0
Dependencies CryptoSwift
Frameworks UIKit
Authors

IME Pay QR Scanner for iOS

Scan QR Code issued by IME Pay to its merchants.

  • Features
  • Requirements
  • Installation
  • Usage
  • License

Features

  • [x] Scan IME Pay merchant’s QR Code
  • [x] SDK Returns merchant’s code and merchant name.

Requirements

  • iOS 8+

Installation

Cocoapods

To integrate Alamofire into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '11.4'
use_frameworks!

target '<Your Target Name>' do
    pod 'IMEPayQRScanner'
end

Then, run the following command:

$ pod install

Usage

For iOS 10+, you have to provide camera ussage description, for that you’ll need to add the Privacy – Camera Usage Description (NSCameraUsageDescription) field in your Info.plist:

Screenshot

And do

import IMEPayQRScanner
let viewController = Your view controller from which scanner is opened

let coordinator = IMPScannerCoordinator(parentViewController: viewController)
coordinator.onScanSuccess  = { name, mobileNumOrCode in
       print("Merchant Name (name ?? "")")
       print("Merchant Mobile Number / Code (mobileNumOrCode ?? "")") // Use this for transactions
}

coordinator.onScanFailure = {
       print("Scanner failure message ($0 ?? "")")
}
coordinator.start()

License

Alamofire is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "IMEPayQRScanner",
    "version": "0.0.1",
    "summary": "IME Pay QR Scanner SDK for iOS.",
    "description": "Scan IME Pay merchant QR Code",
    "homepage": "https://github.com/imepay/IMEPayQRScanner_iOS",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Manoj Karki": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.1.2",
    "source": {
        "git": "https://github.com/imepay/IMEPayQRScanner_iOS.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "IMEPayQRScanner",
        "IMEPay/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "resources": "IMEPayQRScanner/*.{png,storyboard}",
    "frameworks": "UIKit",
    "dependencies": {
        "CryptoSwift": [
            "~> 0.7.1"
        ]
    }
}

Pin It on Pinterest

Share This