Log in
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 class when they need to dynamically instantiate payment method objects while ensuring they implement the required MethodInterface.

It validates that created objects are proper payment methods before returning them.

Public Methods

  • create()