Log in
Model

SuccessValidator

Magento\Checkout\Model\Session\SuccessValidator

What it does

This class validates whether a checkout session is valid for displaying the order success page.

Developers use this validator to ensure that users can only access the success page after completing a legitimate order, preventing users from manually navigating to the success page without placing an order.

It checks for the presence of required session data like the last successful quote ID, quote ID, and order ID.

Public Methods

  • isValid()