     
     
     /**
-     subclassed method that is called when textField content was changed
+     Subclassed method that is called when text field content was changed
      
-     - parameter textField: the textfield of which the content has changed
+     - parameter textField: The text field of which the content has changed
      */
     override public func textFieldDidChangeValue(textField: UITextField) {
         super.textFieldDidChangeValue(textField)

    
    
    /**
     hint label text
     
     - returns: string that is shown as a hint when user resides in a inputField for more than 5 seconds
     */
    override public func hintLabelText() -> String {
        if isTokenPayment {

 */
public class SecurityInputField: JudoPayInputField {
    
    /// The card network for the security input field
    public var cardNetwork: CardNetwork = .Unknown
    
    /// Boolean that indicates whether this transaction is done via a token 
    public var isTokenPayment: Bool = false
    
    // MARK: UITextFieldDelegate Methods
    
    
    /**
    Delegate method implementation
    
    - parameter textField: Text field
    - parameter range:     Range
    - parameter string:    String
    
    - returns: Boolean to change characters in given range for a textfield
    */
    public func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool {
        
        // Only handle delegate calls for own text field
        guard textField == self.textField else { return false }
        
        // Get old and new text
        let oldString = textField.text!
        let newString = (oldString as NSString).stringByReplacingCharactersInRange(range, withString: string)
        
