Log in
Model

Cctype

Magento\Payment\Model\Config\Source\Cctype

What it does

This class provides a list of available credit card types (Visa, Mastercard, Amex, etc.) as options for dropdown fields in Magento's admin configuration.

Developers use this class when creating payment method configuration forms that need to display credit card type selection options.

It retrieves the credit card types from the payment configuration and formats them as value-label pairs for use in system configuration fields.

Public Methods

  • toOptionArray()