Skip to content
Sum&Substance Mobile SDK for iOS
Branch: master
Clone or download
Latest commit 737817e Oct 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
1.0 1.1 release Jan 30, 2019
1.1 1.1 release Jan 30, 2019
2.0 Update Readme to 2.0 Mar 20, 2019
2.1 Update Readme to 2.1 Apr 4, 2019
2.2 2.2 release Apr 12, 2019
2.3 2.3 release May 14, 2019
2.4.1 2.4.1 release May 29, 2019
2.4 2.4 release May 23, 2019
2.5 2.5 release Jun 14, 2019
2.6 2.6 release Jul 12, 2019
2.7 2.7 release Aug 2, 2019
2.8 2.8 release Aug 29, 2019
2.9.1 2.9.1 release Sep 13, 2019
2.9.2 2.9.2 release Sep 23, 2019
2.9.3 2.9.3 release Oct 16, 2019
2.9 2.9 release Sep 11, 2019
Deps 2.8 release Aug 29, 2019
.gitignore 2.4 release May 23, 2019
Liveness3D.md 2.9.3 release Oct 16, 2019
README.md 2.9.3 release Oct 16, 2019
SumSubstanceKYC.json 2.9.3 release Oct 16, 2019

README.md

KYC-iOS-Release 2.9.3

👉 Take a look here if you'd like to use Liveness3D module only.

Installation

This framework ment to be installed via cocoapods.

  • Add to your Podfile specs repositories: SumSubstance/Specs, and public one - CocoaPods/Specs
  • Specify use_frameworks! option
  • Add dependency SumSubstanceKYC to your target

Resulting Podfile could look as follows:

platform :ios, '9.3'

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/SumSubstance/Specs.git'

use_frameworks!

target 'MyAwesomeApp' do

  pod 'SumSubstanceKYC'

  # any other dependencies
end
  • Run pod install --repo-update

Usage

To instantiate framework call

SSEngine *engine = [SSFacade setupForApplicant:applicantID
                                     withToken:authToken
                                        locale:locale
                                  supportEmail:supportEmail
                                       baseUrl:baseUrl
                                   colorConfig:colorConfigOrNil
                                   imageConfig:imageConfigOrNil];

Where

  • applicantID - your applicant identifier
  • authToken - your Sum&Sub auth token
  • locale - user locale (preferably NSLocale.currentLocale.localeIdentifier, but you can use any)
  • colorConfigOrNil - nil or subclass of KYCColorConfig (for color pallet customization)
  • imageConfigOrNil - nil or subclass of KYCImageConfig (for icons customization)

Then, you should:

  • Connect to remote - [engine connectWithExpirationHandler:verificationResultHandler:];
  • Create KYC UI - [SSFacade getChatControllerWithAttributedTitle:titleOrNil]
  • Refresh auth token (when needed) - engine.refreshToken = newToken;

For more usage examples refer to demo project.

You can’t perform that action at this time.