Log in
Model

PaymentMethodValidationRule

Magento\Quote\Model\ValidationRules\PaymentMethodValidationRule

What it does

This class validates that a quote has a payment method selected before proceeding with checkout or order placement.

Developers would use this validation rule to ensure customers cannot complete an order without selecting a valid payment method.

It's part of Magento's quote validation system that runs checks before critical quote operations.

Public Methods

  • validate()