OPPMBWayPaymentParams

@interface OPPMBWayPaymentParams : OPPPaymentParams

Class to encapsulate all necessary transaction parameters for performing an MB WAY transaction.

  • Creates an object representing an MB WAY transaction.

    Declaration

    Objective-C

    + (nullable instancetype)
        mbWayPaymentParamsWithCheckoutID:(nonnull NSString *)checkoutID
                             countryCode:(nonnull NSString *)countryCode
                             phoneNumber:(nonnull NSString *)phoneNumber
                                   error:(NSError *_Nullable *_Nullable)error;

    Swift

    convenience 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.

    error

    The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) and NSLocalizedDescription to identify the reason of failure.

    Return Value

    Returns an object representing an MB WAY transaction.

  • Country code of the mobile phone number.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull countryCode;

    Swift

    var countryCode: String { get }
  • Mobile phone number of the account.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull phoneNumber;

    Swift

    var phoneNumber: String { get }