Log in
Model

Cctype

Magento\Payment\Model\Config\Source\Cctype

What it does

This class provides a source model for credit card type configuration options in Magento's admin panel.

Developers use it when creating system configuration fields that need to display a dropdown of available credit card types (Visa, MasterCard, etc.).

It retrieves all configured credit card types from the payment configuration and formats them as option arrays for use in admin forms.

Public Methods

  • toOptionArray()