Payment

public protocol Payment

A protocol that defines what are the values needed to properly process payment.

  • An Array<Attribute> that hold insensitive information about the payment. In case of credit cards this would include things like ‘Card Type’, ‘Last 4 Digits’, etc.

    Declaration

    Swift

    var attributes: [Attribute] { get }
  • Specifies the PaymentOption for the payment method.

    Declaration

    Swift

    var paymentOption: PaymentOption { get }
  • A one liner localized description of the payment method. Use this for payment selection.

    Declaration

    Swift

    var localizedDescription: String { get }
  • The secure (encrypted) payload that is safe to transmit over the internet for processing.

    Declaration

    Swift

    func securePayload() -> Data?