OPPTransaction
@objc
public final class OPPTransaction : NSObject
Class to encapsulate the parameters needed for performing transaction.
-
The parameters representing a specific payment method that are kept as an
OPPPaymentParams
object.Declaration
Swift
@objc public private(set) var paymentParams: OPPPaymentParams { get }
-
The type of the transaction.
Declaration
Swift
@objc public internal(set) var type: OPPTransactionType { get }
-
The URL to the receiver system (e.g. 3-D Secure, PayPal) that the shopper should be forwarded to. The property has
nil
value on synchronous transaction.Declaration
Swift
@objc public var redirectURL: URL?
-
Relative path to get status of transaction. @note The property is returned ONLY from
OPPCheckoutProvider
methods. If you are using core SDK, please request checkout info to getcheckoutInfo.resourcePath
by calling-[OPPPaymentProvider requestCheckoutInfoWithCheckoutID:completionHandler:]
.Declaration
Swift
@objc public var resourcePath: String?
-
3-D Secure 2 response parameters.
Declaration
Swift
@objc public internal(set) var threeDS2Info: OPPThreeDS2Info? { get }
-
The URL which posts threeDSMethodData to the ACS. It should be opened in a hidden iframe.
Declaration
Swift
@objc public var threeDS2MethodRedirectURL: URL?
-
Dictionary for holding brand-specific parameters like: @see
OPPTransactionKlarnaInlineClientTokenKey
,OPPTransactionKlarnaInlineClientCallbackUrlKey
,OPPTransactionKlarnaInlineClientFailureCallbackUrlKey
,OPPTransactionKlarnaInlineInitialTransactionIdKey
Declaration
Swift
@objc public internal(set) var brandSpecificInfo: [String : String]? { get }
-
Creates and returns transaction initialized with payment params.
Declaration
Swift
@objc public init(paymentParams: OPPPaymentParams)
Parameters
paymentParams
The payment parameters for transaction. Must not be
nil
.Return Value
Returns an object representing OPPTransaction object.
-
Creates and returns transaction initialized with payment params.
Declaration
Swift
@objc public static func transactionWithPaymentParams(_ paymentParams: OPPPaymentParams) -> Self
Parameters
paymentParams
The payment parameters for transaction. Must not be
nil
.Return Value
Returns an object representing OPPTransaction object.