Validation class for credit cards.

0.7.0 2021-05-19 22:03 UTC

This package is auto-updated.

Last update: 2022-05-20 00:43:12 UTC


Build Status


Validation class for credit cards. Validates card numbers according to the Luhn algorithm and according to card type. Also validates CVV/CID/CSC numbers according to card type.

Supported card types are:

  • MasterCard
  • Visa
  • American Express
  • Diners Club
  • Carte Blanche
  • Discover
  • JCB
  • EnRoute
  • Eurocard