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 - delegate will be called with some basic information about the success or failure.

    See more

    Declaration

    Swift

    @objc(DTTransaction)
    public class Transaction : NSObject, DTErrorHandlerDelegate
  • This class can be used to specify miscellaneous options related to the transaction.

    See more

    Declaration

    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 more

    Declaration

    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 more

    Declaration

    Swift

    @objc(DTTransactionSuccess)
    @objcMembers
    public class TransactionSuccess : NSObject
  • This class includes the error message and other details of a transaction.

    See more

    Declaration

    Swift

    @objc(DTTransactionError)
    public class TransactionError : NSError