Log in
Model

PaymentMethodValidationRule

Magento\Quote\Model\ValidationRules\PaymentMethodValidationRule

What it does

This validation rule ensures that a quote has a valid payment method selected before proceeding with checkout.

Developers use this class as part of the quote validation chain to prevent orders from being placed without a payment method, returning validation errors when the payment method is missing.

Public Methods

  • validate()