OPPAfterpayConfig
@interface OPPAfterpayConfig : OPPBrandConfig
Class to encapsulate configuration for Afterpay payment method.
-
Creates an object representing Afterpay configuration.
Declaration
Objective-C
- (nullable instancetype) initWithWithMinimumAmount:(nonnull NSString *)minimumAmount maximumAmount:(nonnull NSString *)maximumAmount locale:(nonnull NSLocale *)locale consumerLocale:(nonnull NSLocale *)consumerLocale;
Swift
init?(withMinimumAmount minimumAmount: String, maximumAmount: String, locale: Locale, consumerLocale: Locale)
Parameters
minimumAmount
The minimum order amount.
maximumAmount
The maximum order amount.
minimumAmount
The minimum order amount.
locale
locale The locale for formatting of terms and conditions and currency.
consumerLocale
The consumer locale.
Return Value
Returns an object representing Afterpay configuration.
-
The minimum order amount.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull minimumAmount;
Swift
var minimumAmount: String { get set }
-
The maximum order amount.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull maximumAmount;
Swift
var maximumAmount: String { get set }
-
Order currency.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull currencyCode;
Swift
var currencyCode: String { get set }
-
Afterpay environment.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull environment;
Swift
var environment: String { get set }
-
The locale.
Declaration
Objective-C
@property (nonatomic, strong) NSLocale *_Nonnull locale;
Swift
var locale: Locale { get set }
-
The consumer locale.
Declaration
Objective-C
@property (nonatomic, strong) NSLocale *_Nonnull consumerLocale;
Swift
var consumerLocale: Locale { get set }