Onepage
Magento\Checkout\Model\Type\Onepage
What it does
This class manages the one-page checkout process in Magento 2, handling the complete flow from quote initialization to order placement.
Developers interact with this class when customizing checkout behavior, such as saving shipping/billing addresses, payment methods, or implementing custom checkout flows.
It coordinates between quote, customer sessions, and order creation while supporting guest, registered, and customer checkout methods.
Public Methods
- getCheckout()
- getQuote()
- setQuote()
- getCustomerSession()
- initCheckout()
- getCheckoutMethod()
- saveCheckoutMethod()
- saveShipping()
- saveShippingMethod()
- savePayment()
- saveOrder()
- getLastOrderId()