OPPIkanoOiPaymentParams
@interface OPPIkanoOiPaymentParams : OPPPaymentParams
Class to encapsulate all necessary transaction parameters for performing an Ikano transaction.
-
Creates an object representing an Ikano transaction.
Declaration
Objective-C
+ (nullable instancetype) ikanoOiPaymentParamsWithCheckoutID:(nonnull NSString *)checkoutID paymentBrand:(nullable NSString *)paymentBrand nationalIdentifier:(nonnull NSString *)nationalIdentifier error:(NSError *_Nullable *_Nullable)error;
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.
error
The error that occurred while validating payment parameters. See code attribute (
OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Return Value
Returns an object representing an Ikano transaction.
-
Creates an object representing an Ikano transaction.
Declaration
Objective-C
- (nullable instancetype) initWithCheckoutID:(nonnull NSString *)checkoutID paymentBrand:(nullable NSString *)paymentBrand nationalIdentifier:(nonnull NSString *)nationalIdentifier error:(NSError *_Nullable *_Nullable)error;
Swift
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.
error
The error that occurred while validating payment parameters. See code attribute (
OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Return Value
Returns an object representing an Ikano transaction.
-
National identifier of the account.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull nationalIdentifier;
Swift
var nationalIdentifier: String { get }
-
Checks if the national identifier is valid to perform a transaction.
Declaration
Objective-C
+ (BOOL)isNationalIdentifierValid:(nonnull NSString *)nationalIdentifier forPaymentBrand:(nullable NSString *)paymentBrand;
Swift
class 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
YES
if the national identifier value is valid.