Latest 1.0.5
Homepage https://github.com/GetSimpl/simpl-fingerprint-sdk-ios
License Commercial
Platforms ios 8.0
Authors

simpl-fingerprint-sdk-ios

How to install

CocoaPods :

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

 $ gem install cocoapods

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

 pod 'SimplFingerPrint'

Then, run the following command:

 $ pod install

Usage

  • Import the Library :

    Obj-C

    #import <SimplFingerPrint/SimplFingerPrint.h>

    Swift

    import SimplFingerPrint
  • Create a GSUser Object :

    Obj-C

    GSUser *user = [[GSUser alloc] initWithPhoneNumber:@"user mobile number" email:@"user email"]

    Swift

    let user = GSUser(phoneNumber: "user mobile number" , email: "user email" )
    • If you want to pass extra params , create a dictionary with params and pass it to GSUser object created above :

    Obj-C

    NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
    params[@"user_location"] = @"18.9750,72.8258"
    params[@"transaction_amount_in_paise"] = @"123344"
    user.headerParams = parms

    Swift

    var params : [String : Any] = [:]
    params["user_location"] = "18.9750,72.8258"
    params["transaction_amount_in_paise"] = "123344"
    user.headerParams = parms
    • Collect the encrypted fingerprint :

    Obj-C

    GSFingerPrint *fp = [[GSFingerPrint alloc] initWithMerchantId:@"Your merchant id" andUser:user];
    [fp generateEncryptedPayloadWithCallback:^(NSString *payload) {
        NSLog(@"Payload: %@", payload);
    }];

    Swift

    let fp = GSFingerPrint(merchantId: "Your merchant id", andUser: user)
    fp.generateEncryptedPayload { (payload: String?) in
      print(payload)
    }

    Note that the payload will be AES (AES/CBC/PKCS7Padding) encrypted.

Latest podspec

{
    "name": "SimplFingerPrint",
    "version": "1.0.5",
    "summary": "SimplFingerPrint iOS SDK.",
    "homepage": "https://github.com/GetSimpl/simpl-fingerprint-sdk-ios",
    "license": {
        "type": "Commercial",
        "file": "License"
    },
    "platforms": {
        "ios": "8.0"
    },
    "authors": {
        "Simpl": "[email protected]"
    },
    "source": {
        "git": "https://github.com/GetSimpl/simpl-fingerprint-sdk-ios.git",
        "tag": "v1.0.5"
    },
    "vendored_frameworks": "SimplFingerPrint.framework",
    "preserve_paths": "SimplFingerPrint.framework"
}

Pin It on Pinterest

Share This