• Diro-Labs-Github
  • YouTube - White Circle
  • LinkedIn - White Circle
  • Twitter - White Circle
  • Facebook - White Circle

DePaula & Clark, Inc. 28 West 36th Street, Suite 401, New York, NY 10018

Tel: 212-255 5788, Fax: 212-255  5011

Offshore Development Office - D2A, 3rd Floor, Sector 18, Noida, India

iOS SDK Documentation 

DiroSDK is a framework that allows the institutions to get KYC of customers via their applications by simply embedding the SDK into their application. The KYC documents given by the user/customer will be cryptographically verified automatically and can be digitally managed by the institutions without the hassle of paper work and collection, hence reducing the cost of collection of documents. 

SDK Integration Process

GENERATING THE LICENCE KEY

Login/Signup in to the Diro KYC Admin Portal 

​Locate license tab and click "Generate License Key" button. A dialog box will open asking for Bundle Identification

Enter the bundle ID of your production app

Click next and confirm your selected bundle ID. Please double-check that the chosen identifier matches the one configured in your app, as it can no longer be changed once it’s been set

You can integrate DiroSDK in your application using one of the following methods:

EMBED USING A NAVIGATION CONTROLLER 

You can embed the SDK using a new navigation controller. All you need to take care of is that you provide the mandatory user details such as First Name, Phone Number, Country Code (MCC). 

let data = DrModel(firstName: "FirstName", lastName: "LastName", dateOfBirth : "DD-MM-YYYY", phoneNo : "000000000", mcc : "91", countryName : "Country")
 

let _ = DiroIdentityModel(identityData: data).setValues { (isValid, statusMsg) in
 

            if isValid {

                

                DispatchQueue.main.async {
 

                    let homeVC =  DiHomeScreenViewController(nibName: "DiHomeScreenViewController", bundle:  Bundle(for: DiHomeScreenViewController.self))
 

                    let nav = UINavigationController(rootViewController: homeVC)
 

                    self.present(nav, animated: true, completion: nil)

                 }

            }

      }

let data = DrModel(firstName: "FirstName", lastName: "LastName", dateOfBirth : "DD-MM-YYYY", phoneNo : "000000000", mcc : "91", countryName : "Country")

let _ = DiroIdentityModel(identityData: data).setValues { (isValid, statusMsg) in

           
            if isValid {

 

              DispatchQueue.main.async {
 

                                     let homeVC  =
                                     DiHomeScreenViewController(nibName:                             
                                     "DiHomeScreenViewController", bundle:  Bundle(for:               
                                     DiHomeScreenViewController.self))

                                   
                                     self.navigationController?.pushViewController(homeVC, animated: true)

 

                                     }

                           }

               }

EMBED IN A TAB BAR CONTROLLER

The following code will let you embed the SDK in a Tab Bar Controller.

let data = DrModel(firstName: "FirstName", lastName: "LastName", dateOfBirth : "DD-MM-YYYY", phoneNo : "000000000", mcc : "91", countryName : "Country")

let _ = DiroIdentityModel(identityData: data).setValues { (isValid, statusMsg) in

 

            if isValid {
 

                    DispatchQueue.main.async {
 

                                  let homeVC  =
                                  DiHomeScreenViewController(nibName: 
                                  "DiHomeScreenViewController", bundle:  Bundle(for:     
                                  DiHomeScreenViewController.self))

 

                                 let homeNavigation  =
                                 UINavigationController.init(rootViewController: homeVC)

                                 homeNavigation.title  = NSLocalizedString("Capture", comment: "")
 

                                 homeNavigation.tabBarItem.image     = UIImage(named : "SomeImage")

                                  }

                      }

       }

 

let tabBarController  = UITabBarController()

tabBarController.viewControllers = [homeNavigation, xTab, yTab, zTab]

For more detailed documentation and sample code, please login to the KYC Admin Panel on top right corner of this screen.

Use "Demo - Sandbox" as country to create a sandbox account on web or APP.

EMBED IN YOUR EXISTING NAVIGATION CONTROLLER

Another way to embed the SDK in your application is by adding the code into your existing navigation controller