Log in
Model

CcConfig

Magento\Payment\Model\CcConfig

What it does

This class provides configuration data and utilities for credit card payment methods in Magento 2.

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

It centralizes all credit card-related configuration logic that payment methods need during checkout.

Public Methods

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