OPPKlarnaInlinePaymentParams
@objc
public final class OPPKlarnaInlinePaymentParams : OPPPaymentParams, NSCopying
Class to encapsulate all necessary transaction parameters for performing 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
Swift
@objc public var initialTransactionId: String?
-
Creates an object representing a Klarna Payments transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Declaration
Swift
@objc public static func klarnaInlinePaymentParams(checkoutID: String, paymentBrand: String?) throws -> Self
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.paymentBrand
The payment brand of the transaction.
Return Value
Returns an object representing a Klarna Payments transaction.