PaymentMethod

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