Log in
Model

CheckCartCheckoutAllowance

Magento\QuoteGraphQl\Model\Cart\CheckCartCheckoutAllowance

What it does

This class validates whether a guest customer is allowed to proceed with checkout in GraphQL operations.

It checks the store's guest checkout configuration and throws an authorization exception if guest checkout is disabled, prompting the user to register or login.

Developers use this during cart checkout flows to enforce guest checkout policies.

Public Methods

  • execute()