OPPIkanoOiPaymentParams
@objc
public final class OPPIkanoOiPaymentParams : OPPPaymentParams, NSCopying
Class to encapsulate all necessary transaction parameters for performing an Ikano transaction.
-
National identifier of the account.
Declaration
Swift
@objc public private(set) var nationalIdentifier: String { get }
-
Creates an object representing an Ikano transaction.
Throws
Error The error that occurred while validating payment parameters. See code attribute (OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Declaration
Swift
@objc public static func ikanoOiPaymentParams(checkoutID: String, paymentBrand: String?, nationalIdentifier: String) throws -> OPPIkanoOiPaymentParams
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.paymentBrand
IKANOOI_SE, IKANOOI_NO or IKANOOI_FI is expected.
nationalIdentifier
National identifier of the account.
Return Value
An object representing an Ikano transaction.
-
Creates an object representing an Ikano transaction.
Throws
Error The error that occurred while validating payment parameters. See code attribute (OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Declaration
Swift
@objc public init(checkoutID: String, paymentBrand: String?, nationalIdentifier: String) throws
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.paymentBrand
IKANOOI_SE, IKANOOI_NO or IKANOOI_FI is expected.
nationalIdentifier
National identifier of the account.
Return Value
An object representing an Ikano transaction.
-
Checks if the national identifier is valid to perform a transaction.
Declaration
Swift
@objc public static func isNationalIdentifierValid(_ nationalIdentifier: String, forPaymentBrand paymentBrand: String?) -> Bool
Parameters
nationalIdentifier
National identifier of the account.
paymentBrand
IKANOOI_SE, IKANOOI_NO or IKANOOI_FI is expected.
Return Value
true
if the national identifier value is valid.