You are here

public function CreditCardType::usesLuhn in Commerce Core 8.2

Gets whether the credit card type uses Luhn validation.

Return value

bool TRUE if the credit card type uses Luhn validation, FALSE otherwise.

File

modules/payment/src/CreditCardType.php, line 135

Class

CreditCardType
Represents a credit card type.

Namespace

Drupal\commerce_payment

Code

public function usesLuhn() : bool {
  return $this->usesLuhn;
}