PaymentMethod

@objc(DTPaymentMethod)
@objcMembers
public class PaymentMethod : NSObject, Codable, NSCoding, NSCopying

This is the base class for payment methods. It contains a type to identify the payment method, e.g. Visa or Mastercard.

  • Payment method type, e.g. Visa

    Declaration

    Swift

    public let type: PaymentMethodType
  • This init method initializes a PaymentMethod object with the payment method type.

    Declaration

    Swift

    public init(type: PaymentMethodType)

    Parameters

    type

    Payment method type, e.g. Visa

  • Refer to the Decodable protocol

    Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Refer to the Encodable protocol

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Refer to the NSCopying protocol

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any
  • Refer to the NSCoding protocol

    Declaration

    Swift

    public required init?(coder: NSCoder)
  • Refer to the NSCoding protocol

    Declaration

    Swift

    public func encode(with coder: NSCoder)