TransactionError

@objc(DTTransactionError)
public class TransactionError : NSError

This class includes the error message and other details of a transaction.

  • The error code for technical errors.

    Use this constant to compare it to a TransactionError‘s code.

    Declaration

    Swift

    @objc
    public static let technical: Int
  • The error code for validation errors.

    Use this constant to compare it to a TransactionError‘s code.

    Declaration

    Swift

    @objc
    public static let validation: Int
  • The error code for authentication errors.

    Use this constant to compare it to a TransactionError‘s code.

    Declaration

    Swift

    @objc
    public static let authentication: Int
  • The error code for authorization errors.

    Use this constant to compare it to a TransactionError‘s code.

    Declaration

    Swift

    @objc
    public static let authorization: Int
  • The payment method used during the transaction.

    Declaration

    Swift

    public internal(set) var paymentMethodType: PaymentMethodType? { get }
  • The payment method used during the transaction.

    This is for use from Objective-C only. This property wraps the rawValue of a DTPaymentMethodType in an NSNumber.

    Declaration

    Swift

    @objc(paymentMethodType)
    public var paymentMethodTypeObjc: NSNumber? { get }
  • The identifier of the failed transaction

    Declaration

    Swift

    @objc
    public internal(set) var transactionId: String? { get }
  • The BackendError that contains the Datatrans error name

    Declaration

    Swift

    @objc
    public var backendError: BackendError? { get }