Log in
Model

QuoteAddressValidator

Magento\Quote\Model\QuoteAddressValidator

What it does

This class validates shipping and billing addresses for quotes (shopping carts) in Magento 2.

Developers use it to ensure addresses belong to the correct customer, verify customer address IDs exist, and confirm guest customers don't try to use saved addresses.

It's commonly used during checkout when customers add or update their shipping/billing information.

Public Methods

  • validate()
  • validateForCart()
  • validateWithExistingAddress()