Log in
Model

Order

Magento\Payment\Model\Cart\SalesModel\Order

What it does

This class wraps a Magento Sales Order model to provide a standardized interface for payment cart operations.

Developers use this adapter when integrating payment gateways that need to access order totals, items, and tax information in a consistent format across different sales models (orders, quotes, invoices).

It transforms order data into a payment-gateway-friendly format, particularly for services like PayPal that require specific item and total structures.

Public Methods

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