Model
SuccessValidator
Magento\Checkout\Model\Session\SuccessValidator
What it does
This class validates whether the checkout session is valid for displaying the order success page.
Developers use this to ensure that users can only access the success page after completing a legitimate order, preventing direct URL access or page refreshes that would show success without an actual order.
It checks that the necessary quote and order IDs exist in the session.
Public Methods
- isValid()