OPPIdentificationPaymentParamsValidator

@objc
public final class OPPIdentificationPaymentParamsValidator : NSObject

Class to validate all input fields for Indenification payment transaction.

  • Checks if the identificationDocId number is valid.

    Throws

    Throws error if the identificationDocId number is valid.

    Declaration

    Swift

    @objc
    public static func validateDocumentID(docType: OPPIdentificationDocType, docId: String) throws

    Parameters

    docType

    Identification documentaion type.

    docId

    Identification document id in string format.

  • Checks if the idCard number is valid.

    Declaration

    Swift

    @objc
    public static func isIdCardNumberValid(_ idCardNumber: String) -> Bool

    Parameters

    idCardNumber

    The nubmer of id Card.

    Return Value

    Returns true if the idCard number is valid.

  • Checks if the passport id is valid.

    Declaration

    Swift

    @objc
    public static func isPassportNumberValid(_ passportNumber: String) -> Bool

    Parameters

    passportNumber

    The passport nubmer..

    Return Value

    Returns true if the passport nubmer is valid.

  • Checks if the taxStatement id is valid.

    Declaration

    Swift

    @objc
    public static func isTaxStatementNumberValid(_ taxStatementNumber: String) -> Bool

    Parameters

    taxStatementNumber

    The name of the bank which holds the account.

    Return Value

    Returns true if the tax statement number is valid.