OPPCheckoutInfo

@interface OPPCheckoutInfo : NSObject

Class to encapsulate the parameters related to the checkout.

  • The amount of the transaction in the specified currency.

    Declaration

    Objective-C

    @property (nonatomic) NSDecimalNumber *_Nonnull amount;

    Swift

    var amount: NSDecimalNumber { get set }
  • ISO 4217 currency code.

    Declaration

    Objective-C

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

    Swift

    var currencyCode: String { get set }
  • Tokens related to the checkout.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSArray<OPPToken *> *tokens;

    Swift

    var tokens: [OPPToken]? { get set }
  • Brand configuration parameters from the Server.

    Declaration

    Objective-C

    @property (nonatomic, nullable) OPPPaymentBrandsConfig *paymentBrandsConfig;

    Swift

    var paymentBrandsConfig: OPPPaymentBrandsConfig? { get set }
  • The endpoint where the transaction will be sent to.

    Declaration

    Objective-C

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

    Swift

    var endpoint: String { get set }
  • Relative path to get status of transaction.

    Declaration

    Objective-C

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

    Swift

    var resourcePath: String { get set }
  • The merchant IDs related to Klarna Invoice and Klarna Installments.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSArray<NSString *> *klarnaMerchantIDs;

    Swift

    var klarnaMerchantIDs: [String]? { get set }
  • The country for ACI Instant Pay payment method.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *bankAccountCountry;

    Swift

    var bankAccountCountry: String? { get set }
  • Shows if ReD Shield Device Id collecting is enabled or disabled.

    Declaration

    Objective-C

    @property (nonatomic) BOOL collectRedShieldDeviceId;

    Swift

    var collectRedShieldDeviceId: Bool { get set }
  • mSDK UI type.

    Declaration

    Objective-C

    @property (nonatomic) OPPMsdkUiType msdkUiType;

    Swift

    var msdkUiType: OPPMsdkUiType { get set }
  • The number in seconds for which the mSDK should wait before retrying another redirect.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval asyncRedirectRetryDelay;

    Swift

    var asyncRedirectRetryDelay: TimeInterval { get }
  • log levels that are fetched from checkout response

    Declaration

    Objective-C

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

    Swift

    var logLevel: String { get set }
  • Creates checkout info object from the JSON that can be received from the Server by checkout ID.

    Declaration

    Objective-C

    + (nullable instancetype)checkoutInfoFromJSON:(nonnull NSDictionary *)JSON
                                            error:(NSError *_Nullable *_Nullable)
                                                      error;

    Swift

    convenience init(fromJSON JSON: [AnyHashable : Any]) throws

    Parameters

    JSON

    A dictionary with parameters received from the Server.

    error

    An error if JSON is invalid.

    Return Value

    Returns an OPPCheckoutInfo object, or nil if JSON is invalid.