Log in
Interface

PaymentInterface

Magento\Quote\Api\Data\PaymentInterface

What it does

This interface defines the contract for payment data objects in Magento 2 quotes.

Developers use this when working with checkout payment information, including payment method codes, purchase order numbers, and additional payment data.

It's primarily used during checkout processing and when implementing custom payment methods or extending payment functionality.

Public Methods

  • getPoNumber()
  • setPoNumber()
  • getMethod()
  • setMethod()
  • getAdditionalData()
  • setAdditionalData()
  • getExtensionAttributes()
  • setExtensionAttributes()