Transaction
-
Use this class to start a transaction with a
mobileToken
that has previously been initialized with a server-to-server init call.This class is the main class to start any operation with the SDK. After the transaction has been completed - regardless if successful or not -
See moredelegate
will be called with some basic information about the success or failure.Declaration
Swift
@objc(DTTransaction) public class Transaction : NSObject, DTErrorHandlerDelegate
-
This class can be used to specify miscellaneous options related to the transaction.
See moreDeclaration
Swift
@objc(DTTransactionOptions) @objcMembers public class TransactionOptions : NSObject
-
Implement TransactionDelegate to be notified when a transaction ends. TransactionDelegate will notify you about the success, error or cancel state of the processed transaction.
See moreDeclaration
Swift
@objc(DTTransactionDelegate) public protocol TransactionDelegate
-
This class includes the success message and other details of a transaction. You will also obtain a transactionId that you can use for operations after the transaction (e.g. settlement, cancel or refund requests).
See moreDeclaration
Swift
@objc(DTTransactionSuccess) @objcMembers public class TransactionSuccess : NSObject
-
This class includes the error message and other details of a transaction.
See moreDeclaration
Swift
@objc(DTTransactionError) public class TransactionError : NSError