OPPMBWayPaymentParams
@objc
public final class OPPMBWayPaymentParams : OPPPaymentParams, NSCopying
Class to encapsulate all necessary transaction parameters for performing an MB WAY transaction.
-
Country code of the mobile phone number.
Declaration
Swift
@objc public private(set) var countryCode: String { get }
-
Mobile phone number of the account.
Declaration
Swift
@objc public private(set) var phoneNumber: String { get }
-
Creates an object representing an MB WAY 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, countryCode: String, phoneNumber: String) throws
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.countryCode
Country code of the mobile phone number.
phoneNumber
Mobile phone number of the account.
Return Value
An object representing an MB WAY transaction.
-
Creates an object representing an MB WAY 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 mbWayPaymentParams(checkoutID: String, countryCode: String, phoneNumber: String) throws -> OPPMBWayPaymentParams
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.countryCode
Country code of the mobile phone number.
phoneNumber
Mobile phone number of the account.
Return Value
An object representing an MB WAY transaction.