credit_card_number_validator

Creator: coderz1093

Last updated:

0 purchases

credit_card_number_validator Image
credit_card_number_validator Images

Languages

Categories

Add to Cart

Description:

credit card number validator

credit_card_number_validator #
A dart package to check if card number is valid and also returns card type as well.
Installing #


Add dependency to pubspec.yaml
Get the current version from the 'Installing' tab


dependencies:
credit_card_number_validator: *current-version*
copied to clipboard

Import the package

import 'package:credit_card_number_validator/credit_card_number_validator.dart';
copied to clipboard
Usage #
A basic example
Map<String, dynamic> cardData = CreditCardValidator.getCard(cardNumberString);
String cardType = cardData[CreditCardValidator.cardType];
bool isValid = cardData[CreditCardValidator.isValidCard];
copied to clipboard
# Features
* Supported cards:
* Visa
* Mastercard
* American Express
* Discover
* Diners Club
* JCB


# Author
Preeth Prathapan - *Creator and repo owner* - [Github Profile](https://github.com/preethzcodez)

# License
This project is licensed under the MIT License - see the [LICENSE file](LICENSE) for more details
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.