Log in
Factory

SpecificationFactory

Magento\Payment\Model\Checks\SpecificationFactory

What it does

This factory class creates composite payment method specifications by mapping specification identifiers to their actual specification objects.

Developers use this when they need to validate payment methods against multiple predefined checks (like country availability, minimum/maximum order totals, etc.) by passing an array of specification names to the create method.

Public Methods

  • create()