Model
Config
Magento\Payment\Model\Config
What it does
This class serves as a central configuration model for payment methods in Magento 2.
Developers use it to retrieve active payment methods, get credit card type information, and obtain formatted lists of months and years for payment form dropdowns.
It's commonly used when building checkout flows, payment forms, or when needing to display or validate payment-related configuration data.
Public Methods
- getActiveMethods()
- getCcTypes()
- getMethodsInfo()
- getGroups()
- getMonths()
- getYears()