Log in
Model

StatusResolver

Magento\Sales\Model\Order\StatusResolver

What it does

This class determines the appropriate order status based on the order's state and payment method configuration.

Developers use it when creating or updating orders to ensure the correct status is assigned, taking into account payment method-specific status configurations or falling back to the default status for the given state.

Public Methods

  • getOrderStatusByState()