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 (shopping carts).

Developers use this interface when working with payment information during checkout, such as setting payment methods, purchase order numbers, and additional payment data.

It's primarily used by payment method integrations and checkout processes to standardize how payment information is handled before order placement.

Public Methods

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