credit_card_validator 0.0.1 copy "credit_card_validator: ^0.0.1" to clipboard
credit_card_validator: ^0.0.1 copied to clipboard

outdated

A Dart package that validates credit card numbers, expiration dates, and security codes (CVV/CVC) based on the type of credit card

credit_card_validator | Credit Card Validator #

A Dart package that validates credit card numbers, expiration dates, and security codes (CVV/CVC) based on the type of credit card

Installing #

  1. Add dependency to pubspec.yaml

    Get the current version in the 'Installing' tab on pub.dartlang.org

dependencies:
    credit_card_validator: *current-version*
  1. Import the package
import 'package:credit_card_validator/credit_card_validator.dart';

Usage #

A basic example

import 'package:credit_card_validator/credit_card_validator.dart';

class CreditCardValidationBloc with CreditCardValidator {
    // Your wrapper class for validating credit cards that now has access to validation functions
    // You can evaluate the results from the functions in your own functions inside this class
}

Note: #

The CreditCardValidator class is meant to be used as a mixin and is not instantiable or extendable.

Features #

  • Supported cards:
    • Visa
    • Mastercard
    • American Express
    • Discover
    • More to come!

Author #

Tanner Davis (Cholojuanito) - Creator and repo owner - Github Profile

License #

This project is licensed under the MIT License - see the LICENSE file for more details

72
likes
0
pub points
95%
popularity

Publisher

unverified uploader

A Dart package that validates credit card numbers, expiration dates, and security codes (CVV/CVC) based on the type of credit card

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

credit_card_type_detector

More

Packages that depend on credit_card_validator