Model
Allmethods
Magento\Payment\Model\Config\Source\Allmethods
What it does
This class provides a source model for retrieving all available payment methods in Magento 2.
Developers use this class in system configuration forms to populate dropdown/select fields with a list of all payment methods (both active and inactive).
It's commonly used in admin configuration sections where administrators need to select from available payment methods.
Public Methods
- toOptionArray()