A flutter port of Cardidy, a package to validate or identify card numbers & cvv with ease.

Related tags

UI flutter_cardidy
Overview

Flutter Cardidy

pub package publisher pub package GitHub Stars Flutter Tests

Buy Me A Coffee

A plugin to validate or identify card numbers & cvv with ease.

This flutter package will help you validate card numbers or CVVs and identiy card issuing provider with minimal code and efforts.

  • simple and easy
  • regex-free
  • up-to-date with Wikipedia
  • no other dependencies
  • well documented
  • production-ready

This package is a Flutter port of original package Cardidy written in C#.


NOTE: The closer we are to an official spec is the Wikipedia's Payment card number page.

Installation

      dependencies:
        flutter_cardidy: ^1.0.0

Getting Started

Add the dependency to your project and start using Flutter Cardidy everywhere:

Import the package.

import 'package:flutter_cardidy/flutter_cardidy.dart';

To validate and identify card's issuing provider

// single card number identification
final result = FlutterCardidy.identify("4127540509730813");
Console.WriteLine(result.first); // print Visa

Multi card identification

// returns a KVP Map of, cardnum as key & result as value
final mapResult = FlutterCardidy.identifyMultiple(["4127540509730813","4771320594031"]);

Validating CVV

var cvv = "123";
var visaCvvIsValid = FlutterCardidy.isCvvValid(cvv, CardType.Visa);

Validating card number without identification

var isCardValid = FlutterCardidy.isCardNumberValid("47!Z320594033");

Properties

Return type of Identify is List . A card is sometimes a co-branded card like Visa or Visa Electron, in this case all matching providers are returned.

Property Type Default Note
cardNumString (required) String - Your card number input string
validateLength bool true Validate the length as part of the String identification.
A false value can be useful to identify the fragment of a card number.
ignoreNoise bool false Ignore common noise found in card number. This noise is any of - ..
handleAnonymization bool false Set any non-digits to zero. It is common to use "X" and "#" to hide some digits.

Improve

Help me by reporting bugs, submit new ideas for features or anything else that you want to share.

  • Just write an issue on GitHub. ✏️
  • And don't forget to hit the like button for this package ✌️

More

Check out my other useful packages on pub.dev

License

MIT

You might also like...

Flutter - Special animated flip card

Flutter - Special animated flip card

special_card Flutter UI Design | Animated Flip Card. Demo for the app: animated-flip-card.mp4 Getting Started This project is a starting point for a F

Dec 4, 2022

Flutter Card Management App(UI/UX)

Flutter Card Management App(UI/UX)

Flutter Card Managing App - Cardy Bank I uploaded on youtube!! Thanks to Watch Introduction I'm working on a project to launch a simple brand. I tried

Oct 31, 2022

Credit Card UI For Flutter

Credit Card UI For Flutter

TP1 FLUTTER CREDIT CARD UI FIRST step : must enter the number of credit card then the expired date SECONDE step : you enter the CVV in the back of the

Nov 8, 2021

Mi-card-app flutter project

my_card_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Dec 2, 2021

A flutter widget where a card is expanded ontap.

A flutter widget where a card is expanded ontap.

Expansion card This package provides an easy implementation of a Expansion type card where you can also add gif at the background. How to use import '

Dec 6, 2022

Find out under which card the Flutter logo is hiding.

Flutter Card Flip Game Find out under which card the Flutter logo is hiding. Game Rules The purpose of this game is for the player to find out under w

Dec 30, 2021

Scratch card widget which temporarily hides content from user.

scratcher Scratch card widget which temporarily hides content from user. Features Android and iOS support Cover content with full color or custom imag

Dec 27, 2022

This is simple Ninja ID Card App Code ;)

ninjacard A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if thi

Oct 17, 2022

A flutter package which makes it easier to display the difference between two images.

A flutter package which makes it easier to display the difference between two images.

👏 Before After A flutter package which makes it easier to display the differences between two images.. The source code is 100% Dart, and everything r

Dec 30, 2022
Owner
Heyramb Narayan Goyal
Jack of All, Master of Some - Senior Software Developer - Cyber Security Researcher - Tech Enthusiast - Contributor on ConsoleTuner.com
Heyramb Narayan Goyal
ID-Card - A Simple ID Card Project Using Flutter

ID-CARD A new Flutter project.A simple demonstration of my time in the Dart lang

edwromero 0 Jan 26, 2022
Validating numbers and providing necessary detail base on selected country

international_phone_field ?? Validating numbers and providing necessary detail base on selected country ?? . The pacakge comes with enough detail abou

Rexford Asamoah 6 Jun 30, 2022
A flutter package for building card based forms.

Card Settings NOTE: THIS IS EFFECTIVELY NULLSAFE BUT CANNOT REFLECT THIS UNTIL cupertino_settings IS UPGRADED. A flutter package for building settings

CodeGrue 445 Dec 26, 2022
Flutter package - Animated Flip Card

Animated Flip Card Animated Flip Card package lets you add an animated flip card to your Flutter app that hide and show more informations. Features Th

Ulfhrafn 8 Dec 4, 2022
A Flutter package to easily create a Credit Card in your application.

Awesome Card A flutter package to create a Credit Card widget in your application. Stay tuned for the latest updates: ?? Screenshots ⚙️ Installation I

Vivek Kaushik 142 Dec 1, 2022
A simple package that provides you with some widgets and cutom clippers which implements the shape of a coupon card.

Coupon UI Kit A simple package that provides you with some widgets and cutom clippers which implements the shape of a coupon card. The example contain

AbdulMuaz Aqeel 15 Dec 20, 2022
A Dart package that detects credit card types based on their prefixes

credit_card_type_detector | Credit Card Type Detector A Dart package that detects credit card types based on the current credit card number patterns T

Tanner Davis 22 Jan 4, 2023
Flutter Credit Card Input form

This package provides visually beautiful UX through animation of credit card information input form. Preview Installing Add dependency to pubspec.yaml

Jeongtae Kim 426 Jan 5, 2023
Flutterwave landing page animated card deck implemented with Flutter

The Flutterwave animated card deck in Flutterwave's landing page implemented with Flutter.

null 38 Nov 10, 2022
This is my card using flutter

Mi Card Our Goal Now that you've seen how to create a Flutter app entirely from scratch, we're going to go further and learn more about how to design

Joshua Uzor 5 Dec 18, 2021