Quote
Magento\Payment\Model\Cart\SalesModel\Quote
What it does
This class serves as a wrapper adapter for Magento's Quote sales model, providing a standardized interface for payment processing.
Developers use this class when integrating payment gateways that need to access quote information like items, subtotals, tax, shipping, and discounts in a consistent format.
It abstracts the complexity of handling virtual vs.
physical quotes by automatically determining whether to use billing or shipping addresses.
Public Methods
- getAllItems()
- getBaseSubtotal()
- getBaseTaxAmount()
- getBaseShippingAmount()
- getBaseDiscountAmount()
- getDataUsingMethod()
- getTaxContainer()