Log in
Factory

SalesModel\Factory

Magento\Payment\Model\Cart\SalesModel\Factory

What it does

This factory class creates wrapper objects for sales models (Quote or Order) used in payment processing.

Developers use this when they need to convert a Quote or Order object into a standardized SalesModelInterface that payment methods can work with uniformly, regardless of whether they're dealing with a cart or completed order.

Public Methods

  • create()