OPPMBWayConfig

@interface OPPMBWayConfig : NSObject

Class to encapsulate configuration for MBWAY payment method.

  • Creates an object representing MBWAY configuration.

    Declaration

    Objective-C

    - (nullable instancetype)initWithCountryCodeVisible:(BOOL)visible
                                            countryCode:
                                                (nonnull NSString *)countryCode;

    Swift

    init?(countryCodeVisible visible: Bool, countryCode: String)

    Parameters

    visible

    Indicates whether country code input field is displayed on the MBWAY form or not. The default value is YES.

    countryCode

    The country code.

    Return Value

    Returns an object representing MBWAY configuration.

  • The flag that defines whether country code input field is visible.

    Declaration

    Objective-C

    @property (nonatomic) BOOL countryCodeVisible;

    Swift

    var countryCodeVisible: Bool { get set }
  • The country code in the following format [0-9]{1,4}.

    Declaration

    Objective-C

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

    Swift

    var countryCode: String { get set }