OPPPayToParamsValidator

@objc
public final class OPPPayToParamsValidator : NSObject

Class to validate all input fields for PayTo transaction.

  • Checks if the mobile number is valid for PayTo transaction.

    Declaration

    Swift

    @objc
    public static func isMobileValid(_ mobileNumber: String) -> Bool

    Parameters

    mobileNumber

    The mobile number for validation. Mobile number should be prefixed with +61.

    Return Value

    Returns true if the mobile number is valid.

  • Checks if the email address is valid for PayTo transaction.

    Declaration

    Swift

    @objc
    public static func isEmailValid(_ emailAddress: String) -> Bool

    Parameters

    emailAddress

    The email address for validation.

    Return Value

    Returns true if the email address is valid.

  • Checks if the bsb code is valid for PayTo transaction.

    Declaration

    Swift

    @objc
    public static func isBSBValid(_ bsbCode: String) -> Bool

    Parameters

    bsbCode

    The bsb code for validation.

    Return Value

    Returns true if the bsb code is valid.

  • Checks if the account number is valid for PayTo transaction.

    Declaration

    Swift

    @objc
    public static func isAccountNumberValid(_ accountNumber: String) -> Bool

    Parameters

    accountNumber

    The account number for validation.

    Return Value

    Returns true if the account number is valid.