menu APIX
Log In Get Started
×

This application is to demonstrate use case of Digital Account Opening in bank by using Percipient Mock Bank’s Create Customer and Create Account APIs. The application will verify user’s identity document and selfie by iOS SDK provided by FinTech.

Xcode version - 10.1
Swift – 4.2

Access the sample code

  • Adding identity scan UI

    • Add Data Fornix SDK in the project and import the SDK in controller
    • 1
    • 1) Create an instance of DFdocument and call instance method “getCapturedImages” on loading of the controller.
    • 1
  • Fetch OCR for image

    • 1) Create an instance of DFAPIFramework and call instance method “getOCRResultFromImage”
    • 1
  • Display information received from OCR result API

    • 1) Create a new view to capture basic information of a customer.
  • Open selfie UI from SDK

    • 1) Create an instance of DFSelfieAuth and call instance method “getSelfieImage”.
    • 1
    • 2) Call “checkUserSelfie” instance method of DFAPIFramework instance to validate selfie against national Id photo.
    • 1
  • Call Create Customer API of Percipient Mock Bank

    • 1) Create customer API will return a newly created customer reference number.
    • 1
  • Call Create Account API of percipient Mock Bank

    • 1) Get customer reference number received from Create Customer API and pass it to Create Account API
    • 2) Once success response is received show the account created successfully.
    • 1
    • 3) Run the source code using Xcode
    • 1
    • 4) Click on “Capture Again” to open Camera. App will ask for Camera Permissions which needs to be allowed. Click Picture of Identity proof and crop to fit.
    • 1
      2
      3
    • 5) Enter details required to create a new account.
    • 1
    • 6) Take a selfie to verify with your identity document photo.
    • 1
      2
      3
      4
    • 7) You will get success message once account is created.
    • 1