Payment
Magento\Quote\Model\Quote\Payment
What it does
This class manages payment information for shopping cart quotes in Magento 2.
Developers use it to handle payment method selection, validation, and data import during the checkout process before an order is placed.
It stores payment details like method code, purchase order numbers, and additional payment data while ensuring the selected payment method is available and valid for the current quote.
Public Methods
- setQuote()
- getQuote()
- importData()
- beforeSave()
- getCheckoutRedirectUrl()
- getOrderPlaceRedirectUrl()
- getMethodInstance()
- getPoNumber()
- setPoNumber()
- getMethod()
- setMethod()
- getAdditionalData()
- setAdditionalData()
- getExtensionAttributes()
- setExtensionAttributes()