OPPRatePayPaymentParams
@objc
public final class OPPRatePayPaymentParams : OPPPaymentParams, NSCopying
Class to encapsulate all necessary transaction parameters for performing an RatePay transaction.
-
Creates an object representing a Ratepay transaction.
Throws
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 ratePayPaymentParams(checkoutID: String, dateOfBirth: Date?) throws -> Self
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.dateOfBirth
Date of Birth of the user.
Return Value
Returns an object representing a Ratepay transaction.
-
Creates an object representing a Ratepay transaction.
Throws
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, dateOfBirth: Date?) throws
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.dateOfBirth
Date of Birth of the user.
Return Value
Returns an object representing a Ratepay transaction.