Model
PlaceOrder
Magento\QuoteGraphQl\Model\Cart\PlaceOrder
What it does
This class handles the final step of placing an order in Magento 2's GraphQL checkout flow.
Developers use this class when implementing GraphQL mutations that convert a quote (shopping cart) into an actual order, typically after payment and shipping information has been collected.
It retrieves the payment method from the cart and delegates order creation to the cart management service.
Public Methods
- execute()