TransactionError

@objc(DTTransactionError)
public class TransactionError : NSError

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

  • 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 }
  • Refer to the NSCopying protocol

    Declaration

    Swift

    override public func copy(with zone: NSZone? = nil) -> Any