Log in
Model

Cc

Magento\Payment\Model\Method\Cc

What it does

This class provides the base implementation for credit card payment methods in Magento 2.

Developers would extend this class when creating custom credit card payment integrations, as it handles validation of card numbers, expiration dates, CVV codes, and card types using industry-standard algorithms like the Luhn algorithm.

It's marked as deprecated and should be replaced with newer payment gateway implementations.

Public Methods

  • validate()
  • hasVerification()
  • getVerificationRegEx()
  • assignData()
  • otherCcType()
  • validateCcNum()
  • validateCcNumOther()
  • isAvailable()