TwoFactor

public class TwoFactor : APIModel

The code and method for two factor authentication, if required by the payment method

  • A single name for the 2fa e.g. face-id, fingerprint, biometry, password, pin

    See more

    Declaration

    Swift

    public enum PCPayMethod : String, Codable, Equatable, CaseIterable
  • A single name for the 2fa e.g. face-id, fingerprint, biometry, password, pin

    Declaration

    Swift

    public var method: PCPayMethod?
  • otp

    OTP (One time password) for the authorization.

    Declaration

    Swift

    public var otp: String?
  • Undocumented

    Declaration

    Swift

    public init(method: PCPayMethod? = nil, otp: String? = nil)
  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Undocumented

    Declaration

    Swift

    public func isEqual(to object: Any?) -> Bool
  • Declaration

    Swift

    public static func == (lhs: TwoFactor, rhs: TwoFactor) -> Bool