     var callback : (( PXIdentification) -> Void)?
     var errorExitCallback: (() -> Void)?
     var identificationTypes: [PXIdentificationType]!
-    var identificationType: PXIdentificationType?
+    var identificationType: PXIdentificationType? {
+        didSet {
+            self.updateKeyboard()
+        }
+    }
 
     //identification Masks
     var identificationMask = TextMaskFormater(mask: "XXXXXXXXXXXXX", completeEmptySpaces: false, leftToRight: false)


// MARK: Identification type keyboard fix
extension IdentificationViewController {
    private func getKeyboardType() -> UIKeyboardType {
        guard let identificationType = identificationType else {
            return UIKeyboardType.default
        }
        return identificationType.isNumberType() ? UIKeyboardType.numberPad : UIKeyboardType.numbersAndPunctuation
    }
}

        numberTextField.addTarget(self, action: #selector(IdentificationViewController.editingChanged(_:)), for: UIControl.Event.editingChanged)
        self.setupInputAccessoryView()
        identificationType = self.identificationTypes.first
        textField.text = self.identificationTypes.first?.name
        self.numberTextField.text = ""
        self.remask()
