Biometrid IOS SDK
2.5.5
2.5.5
  • Introduction
  • Standard SDK
    • Prerequisites
    • Requirements
    • Initialization
    • Enums
    • Installation
      • Zip file
      • CocoaPods
    • Process Management
      • Create process
      • Get Step State
      • Update Step
      • Previous Step
    • Liveness Detection
    • Auto Capture
      • MRZ Capture
      • Configurations
    • Camera
      • Configurations
    • NFC
      • Scan Result
      • Configurations
    • Video Conference
  • FULL SDK
    • Requirements
    • Usage
    • Installation
      • Zip file
      • CocoaPods
    • Initialization
    • Start
    • Stop
    • Callbacks
Powered by GitBook
On this page
  • Implementation example
  • Callback params

Was this helpful?

  1. Standard SDK
  2. Process Management

Update Step

This section contains the necessary method to update the current step, providing the correct data for the step.

BiometridStandard.getInstance().updateStep(processId: processId, data: data, callback: self)

Parameter

Description

processId: String

process id

data: [String: Any]

Form data (key and values)

callback: ProcessCallback

callback

Implementation example

import UIKit
import BiometridStandard

class ViewController: UIViewController, ProcessCallback {

    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func updateStepBtn(_ sender: Any) {
    
        let formBuilder = ["account_type": 123456, "account_holder": 1,
                           "client_account_purpose": "P01", "funds_origin": "OU",
                           "other_funds_origin": 1, "file_doc_personal_data": "base64",
                           "accept_terms_conditions": 1, "file_doc_pre_cont": "base64",
                           "date_of_accept_term_conditions": "01/01/2019", "name": "andre",
                           "surname": "barnabe", "client_email": "andre.barnabe@polygon.pt",
                           "client_phonenumber": "910000000", "personal_data_aut1": 1,
                           "client_nif": "110000000", "personal_data_aut2": 1,
                           "telef_verif_ind": 1, "date_of_phone_validation": "01/01/2019"] as [String : Any]
              
       BiometridStandard.getInstance().updateStep(processId: processId, data: formBuilder, callback: self)             
                           
    }
    
    func updateStepCallback(status: Bool, response: String?, error: Errors?) {
        print("status update step", status)
        if error != nil {
            print(error as Any)
            return
        }
        print("response update step", response as Any)
    }
}

Callback params

Parameter

Description

status: Bool

Method request status

response: String?

All the response from the api

error: Errors?

Errors associated enum

PreviousGet Step StateNextPrevious Step

Was this helpful?