Transaction
-
Use this class to start a transaction with a
transactionIdthat 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 moredelegatewill be called with some basic information about the success or failure.Declaration
Swift
@objc(DTTransaction) public final class Transaction : NSObject -
This class can be used to specify miscellaneous options related to the transaction.
See moreDeclaration
Swift
@objc(DTTransactionOptions) @objcMembers public final 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 provides error information about a failed transaction.
See moreDeclaration
Swift
@objc(DTTransactionError) @objcMembers public class TransactionError : NSObject, NSCopying -
This class is used to customize the SDK’s accent color to match your app’s color scheme.
Make sure to specify your colors using
See moreUIColor.init(dynamicProvider:)to support light and dark mode colors.Declaration
Swift
@objc(DTThemeConfiguration) @objcMembers public class ThemeConfiguration : NSObject
View on GitHub
Transaction Reference