Log in
Model

Order

Magento\Payment\Model\Cart\SalesModel\Order

What it does

This class serves as a wrapper/adapter for the Magento Sales Order model, specifically designed for payment cart operations.

Developers use this class when integrating payment gateways that need to access order information in a standardized format, such as retrieving order items, subtotals, tax amounts, shipping costs, and discounts.

It transforms order data into a payment-processing-friendly structure that payment modules can consume consistently.

Public Methods

  • getAllItems()
  • getBaseSubtotal()
  • getBaseTaxAmount()
  • getBaseShippingAmount()
  • getBaseDiscountAmount()
  • getDataUsingMethod()
  • getTaxContainer()