Factory
SalesModel\Factory
Magento\Payment\Model\Cart\SalesModel\Factory
What it does
This factory creates wrapper objects that adapt Magento sales models (Quote or Order) into a standardized payment cart interface.
Developers use this when they need to work with payment cart data in a uniform way, regardless of whether the underlying model is a quote or order.
The factory automatically determines which wrapper type to instantiate based on the sales model provided.
Public Methods
- create()