OPPKlarnaInlinePaymentParams

@interface OPPKlarnaInlinePaymentParams : OPPPaymentParams

Class to encapsulate all necessary transaction parameters for performing Klarna Payments transaction.

  • Creates an object representing a Klarna Payments transaction.

    Declaration

    Objective-C

    + (nullable instancetype)
        klarnaInlinePaymentParamsWithCheckoutID:(nonnull NSString *)checkoutID
                                   paymentBrand:(nullable NSString *)paymentBrand
                                          error:
                                              (NSError *_Nullable *_Nullable)error;

    Parameters

    checkoutID

    The checkout ID of the transaction. Must be not nil or empty.

    paymentBrand

    The payment brand of the transaction.

    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 a Klarna Payments transaction.

  • The id of the initial AD transaction (AD - account discovery). This parameter is required to submit PA transaction after shopper clicked Pay button.

    Declaration

    Objective-C

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

    Swift

    var initialTransactionId: String? { get set }