Log in
Model

CcConfig

Magento\Payment\Model\CcConfig

What it does

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

Developers use it to retrieve available credit card types, expiration months/years, CVV verification settings, and to generate URLs for credit card related assets like the CVV tooltip image.

It serves as a centralized configuration point for credit card payment method implementations.

Public Methods

  • getSsStartYears()
  • getCcAvailableTypes()
  • getCcMonths()
  • getCcYears()
  • hasVerification()
  • hasSsCardType()
  • getCvvImageUrl()
  • getViewFileUrl()
  • createAsset()