Factory
Method\Factory
Magento\Payment\Model\Method\Factory
What it does
This factory class is responsible for creating instances of payment method models in Magento 2.
Developers use this when they need to instantiate payment method objects dynamically, ensuring that the created object implements the required MethodInterface.
It validates that any created payment method class follows Magento's payment method contract.
Public Methods
- create()