PaymentMethod

public protocol PaymentMethod : Decodable

A payment method that is available to use.

  • A string identifying the type of payment method, such as "card", "ideal", "applepay".

    Declaration

    Swift

    var type: String { get }
  • The name of the payment method, such as "Credit Card", "iDEAL", "Apple Pay".

    Declaration

    Swift

    var name: String { get }
  • Display information for the payment method, adapted for displaying in a list.

    Declaration

    Swift

    var displayInformation: DisplayInformation { get }
  • Display information for the payment method, adapted for displaying in a list.

    Declaration

    Swift

    func localizedDisplayInformation(using parameters: LocalizationParameters?) -> DisplayInformation

    Parameters

    using

    The localization parameters.