Log in
Interface

SpecificationInterface

Magento\Payment\Model\Checks\SpecificationInterface

What it does

This interface defines a contract for checking whether a payment method can be used with a specific quote.

Developers implement this interface to create custom validation rules that determine if a payment method is applicable based on quote data like total amount, customer group, or billing address.

Multiple specification classes can be used together to build complex payment method availability logic.

Public Methods

  • isApplicable()