Log in
Model

AllowedCountryValidationRule

Magento\Quote\Model\ValidationRules\AllowedCountryValidationRule

What it does

This validation rule ensures that the shipping country selected in a quote is allowed based on the store's configured allowed countries.

Developers would use this class when validating quote data before checkout to prevent orders from being placed to restricted countries.

It's automatically invoked as part of Magento's quote validation chain.

Public Methods

  • validate()