Log in
Model

Onepage

Magento\Checkout\Model\Type\Onepage

What it does

This class manages the one-page checkout process in Magento 2, handling the complete checkout flow from initialization through order placement.

Developers interact with this class when customizing checkout behavior, such as validating checkout steps, saving shipping/payment information, or extending the order submission process for both guest and registered customers.

Public Methods

  • getCheckout()
  • getQuote()
  • setQuote()
  • getCustomerSession()
  • initCheckout()
  • getCheckoutMethod()
  • saveCheckoutMethod()
  • saveShipping()
  • saveShippingMethod()
  • savePayment()
  • saveOrder()
  • getLastOrderId()