OPPTransaction
@interface OPPTransaction : NSObject
Class to encapsulate the parameters needed for performing transaction.
-
Creates and returns transaction initialized with payment params.
Declaration
Objective-C
+ (nonnull instancetype)transactionWithPaymentParams: (nonnull OPPPaymentParams *)paymentParams;
Parameters
paymentParams
The payment parameters for transaction. Must not be
nil
. -
Creates and returns transaction initialized with payment params.
Declaration
Objective-C
- (nonnull instancetype)initWithPaymentParams: (nonnull OPPPaymentParams *)paymentParams;
Swift
init(paymentParams: OPPPaymentParams)
Parameters
paymentParams
The payment parameters for transaction. Must not be
nil
.
-
The parameters representing a specific payment method that are kept as an
OPPPaymentParams
object.Declaration
Objective-C
@property (nonatomic, readonly) OPPPaymentParams *_Nonnull paymentParams;
Swift
var paymentParams: OPPPaymentParams { get }
-
The type of the transaction.
Declaration
Objective-C
@property (nonatomic, readonly) OPPTransactionType type;
Swift
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
Objective-C
@property (nonatomic, nullable) NSURL *redirectURL;
Swift
var redirectURL: URL? { get set }
-
Relative path to get status of transaction.
Note
The property is returned ONLY fromOPPCheckoutProvider
methods. If you are using core SDK, please request checkout info to getcheckoutInfo.resourcePath
by calling-[OPPPaymentProvider requestCheckoutInfoWithCheckoutID:completionHandler:]
.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *resourcePath;
Swift
var resourcePath: String? { get set }
-
3-D Secure 2 response parameters.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) OPPThreeDS2Info *threeDS2Info;
Swift
var threeDS2Info: OPPThreeDS2Info? { get }
-
YooKassa response parameters.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) OPPYooKassaInfo *yooKassaInfo;
Swift
var yooKassaInfo: OPPYooKassaInfo? { get }
-
The URL which posts threeDSMethodData to the ACS. It should be opened in a hidden iframe.
Declaration
Objective-C
@property (nonatomic, nullable) NSURL *threeDS2MethodRedirectURL;
Swift
var threeDS2MethodRedirectURL: URL? { get set }
-
Dictionary for holding brand-specific parameters like:
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDictionary<NSString *, NSString *> *brandSpecificInfo;
Swift
var brandSpecificInfo: [String : String]? { get }