HyperKYC 0.27.2

HyperKYC 0.27.2

Shrirama UpadhyaJishinHVNiveditaHVvishnu 维护。



HyperKYC 0.27.2

  • HyperVerge

HyperKYC

HyperKyc SDK 可用于创建全局 DKYC 工作流程,以捕获身份证照片、用户面部照片,并执行面部匹配等操作,从而减少客户端的集成摩擦。

此 SDK 可用于 iOS 原生应用,并支持从 iOS 11 开始的所有 iOS 版本。

最低要求

  1. min iOS SDK 版本 11
  2. 推荐平台版本
    1. xCode 13+
    2. Swift 5.5
    3. Cocoapods 1.11.x

集成步骤

  1. 将 HyperKyc SDK 添加到您的项目中,并运行 pod install
pod 'HyperKYC'

相机权限

为了请求用户的相机权限,请在您的应用程序的 info.plist 文件中添加此键值对。

  • 键 : Privacy - Camera Usage Description

  • 值 : "访问相机需要用于文档和面部捕获"}

  1. 导入 HyperKYC 模块
import HyperKYC
  1. 创建 HyperKycConfig 实例
//  Create HyperKycConfig instance using appId-appKey (less secure)
let hyperKycConfig = HyperKycConfig(
                    appId: "<app-id>", // get this from Hyperverge team
                    appKey: "<app-key>", // get this from Hyperverge team
                    workflowId: "<workflow-id>", // get this from Hyperverge dashboard
                    transactionId: "<transaction-id>"
                )

OR

//  Create HyperKycConfig instance using accessToken (more secure)
let hyperKycConfig = HyperKycConfig(
                    accessToken: "<access-token>", // contact Hyperverge team to get more info about accessToken
                    workflowId: "<workflow-id>", // get this from Hyperverge dashboard
                    transactionId: "<transaction-id>"
                )
  1. 创建 completionHandler 实例
let completionHandler :(_ hyperKycResult: HyperKycResult) -> Void = {
    hyperKycResult in
        //  Handle hyperKycResult (contact Hyperverge team for more info)
}
  1. 调用 HyperKYC.launch()
HyperKyc.launch(self, hyperKycConfig: hyperKycConfig, completionHandler)

请联系Hyperverge获取完整文档以及针对您具体用例设计的正确解决方案,以便充分使用HyperKyc SDK。