OPPIkanoPrivateLabelVAPaymentParams
@objc
public final class OPPIkanoPrivateLabelVAPaymentParams : OPPPaymentParams
Class to encapsulate all necessary transaction parameters for performing an Ikano private label transaction (as virtual account).
-
The account number.
Declaration
Swift
@objc public private(set) var accountNumber: String { get } -
The expiration month of the account in the format
MM.Declaration
Swift
@objc public private(set) var expiryMonth: String { get } -
The expiration year of the account in the format
YYYY.Declaration
Swift
@objc public private(set) var expiryYear: String { get } -
The verification code of the account.
Declaration
Swift
@objc public private(set) var accountVerification: String? { get }
-
Creates an object representing an Ikano private label transaction (as virtual account).
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public init(checkoutID: String, accountNumber: String, expiryMonth: String, expiryYear: String, accountVerification: String?) throwsParameters
checkoutIDThe checkout ID of the transaction.
accountNumberThe account number.
expiryMonthThe expiration month of the account. It is expected in the format
MM.expiryYearThe expiration year of the account. It is expected in the format
YYYY.accountVerificationThe verification code of the account.
Return Value
An object representing an Ikano private label transaction (as virtual account).
-
ikanoPrivateLabelVAPaymentParams(checkoutID:accountNumber:expiryMonth:expiryYear:accountVerification:)Creates an object representing an Ikano private label transaction (as virtual account).
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public static func ikanoPrivateLabelVAPaymentParams(checkoutID: String, accountNumber: String, expiryMonth: String, expiryYear: String, accountVerification: String?) throws -> OPPIkanoPrivateLabelVAPaymentParamsParameters
checkoutIDThe checkout ID of the transaction.
accountNumberThe account number.
expiryMonthThe expiration month of the account. It is expected in the format
MM.expiryYearThe expiration year of the account. It is expected in the format
YYYY.accountVerificationThe verification code of the account.
Return Value
an object representing an Ikano private label transaction (as virtual account).
-
Checks if account number is valid (card number validation used).
Declaration
Swift
static func isAccountNumberValid(_ accountNumber: String) -> BoolParameters
accountNumberThe account number.
Return Value
trueif account number is valid,falseif it doesn’t. -
Checks if expiration month is valid,
MMformat expected.Declaration
Swift
static func isExpiryMonthValid(_ expiryMonth: String) -> BoolParameters
expiryMonthThe expiration month of the account.
Return Value
trueif expiration month is valid,falseif it doesn’t. -
Checks if expiration year is valid,
YYYYformat expected.Declaration
Swift
static func isExpiryYearValid(_ expiryYear: String) -> BoolParameters
expiryYearThe expiration year of the account.
Return Value
trueif expiration year is valid,falseif it doesn’t. -
Checks if account is expired, expiration month and year should represent some date in the future.
Declaration
Swift
static func isAccountExpired(withExpiryMonth expiryMonth: String, andYear expiryYear: String) -> BoolParameters
expiryMonthThe expiration month of the account.
expiryYearThe expiration year of the account.
Return Value
trueif the account is expired.falseif the account is not expired yet. -
Checks if verification code in valid, up to 5 digits expected.
Declaration
Swift
static func isAccountVerificationValid(_ accountVerification: String) -> BoolParameters
accountVerificationThe verification code of the account.
Return Value
trueif the verification code is valid,falseif it doesn’t.
OPPIkanoPrivateLabelVAPaymentParams Class Reference