TransactionError

@objc(DTTransactionError)
@objcMembers
public class TransactionError : NSObject, NSCopying

This class provides error information about a failed transaction.

Public error codes

  • Error code for SDK misconfigurations.

    Declaration

    Swift

    public static let SDKConfigurationError: String
  • Error code related to the 3DS SDK.

    Declaration

    Swift

    public static let ThreeDsSDKError: String
  • Error code for failed authentication (e.g. 3DS).

    Declaration

    Swift

    public static let AuthenticationError: String
  • Error code for errors related to third-party apps.

    Declaration

    Swift

    public static let ThirdPartyError: String

Public API

  • The error code. This is either a backend error code as specified in the API documentation or one of the SDK-specific error codes defined in this class.

    Declaration

    Swift

    public let code: String
  • The error message providing additional error details.

    Declaration

    Swift

    public let message: String?
  • The transaction ID.

    Declaration

    Swift

    public internal(set) var transactionId: String! { get }