Log in
Interface

SpecificationInterface

Magento\Payment\Model\Method\SpecificationInterface

What it does

This interface defines a contract for payment method specification classes that validate whether a payment method meets certain criteria or business rules.

Developers implement this interface to create custom validation logic that determines if a specific payment method can be used in particular scenarios, such as checking availability based on country, currency, or order total.

It follows the Specification Pattern to encapsulate business rules for payment method eligibility.

Public Methods

  • isSatisfiedBy()