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) throwsParameters
docTypeIdentification documentaion type.
docIdIdentification document id in string format.
-
Checks if the idCard number is valid.
Declaration
Swift
@objc public static func isIdCardNumberValid(_ idCardNumber: String) -> BoolParameters
idCardNumberThe nubmer of id Card.
Return Value
Returns
trueif the idCard number is valid. -
Checks if the passport id is valid.
Declaration
Swift
@objc public static func isPassportNumberValid(_ passportNumber: String) -> BoolParameters
passportNumberThe passport nubmer..
Return Value
Returns
trueif the passport nubmer is valid. -
Checks if the taxStatement id is valid.
Declaration
Swift
@objc public static func isTaxStatementNumberValid(_ taxStatementNumber: String) -> BoolParameters
taxStatementNumberThe name of the bank which holds the account.
Return Value
Returns
trueif the tax statement number is valid.
OPPIdentificationPaymentParamsValidator Class Reference