SpecificationFactory
Magento\Payment\Model\Checks\SpecificationFactory
What it does
This factory creates composite payment specifications by combining predefined validation checks for payment methods.
Developers use it to validate payment methods against multiple conditions at once, such as checking availability, currency support, or customer eligibility.
It maps requested check types to their corresponding specification classes and returns a composite object that executes all checks.
Public Methods
- create()