Log in
Model

Composite

Magento\Payment\Model\Checks\Composite

What it does

This class acts as a container for multiple payment method validation checks, combining them with AND logic.

Developers use it to register and execute multiple specification checks at once - if any check fails, the payment method is considered not applicable to the quote.

It's commonly used during checkout to validate whether a payment method can be used based on various criteria like currency, country restrictions, or minimum order amounts.

Public Methods

  • isApplicable()