Log in
Model

Config

Magento\Payment\Model\Config

What it does

This class provides configuration and utility methods for payment methods in Magento 2.

Developers use it to retrieve active payment methods, get credit card type information, and generate localized month/year lists for payment forms.

It serves as a central service for accessing payment-related configuration data across the store.

Public Methods

  • getActiveMethods()
  • getCcTypes()
  • getMethodsInfo()
  • getGroups()
  • getMonths()
  • getYears()