Skip to content

A flutter package for Fast, Accurate and Secure Credit card & Debit card scanning

License

Notifications You must be signed in to change notification settings

bargo123/card-scanner-flutter

This branch is 2 commits ahead of, 8 commits behind nateshmbhat/card-scanner-flutter:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 8, 2024
55020bd · May 8, 2024

History

95 Commits
Oct 25, 2020
Jun 28, 2020
May 8, 2024
May 8, 2024
Apr 28, 2021
Apr 23, 2021
Jul 10, 2020
Apr 23, 2021
Jun 28, 2020
Apr 28, 2021
Apr 22, 2021
May 29, 2021
Jun 28, 2020
May 8, 2024

Repository files navigation

Fast, Accurate and Secure Credit & Debit card scanner for Flutter

card_scanner is a flutter plugin for accurately and quickly scanning debit and credit cards.

Features

  • 🔒Fully OFFLINE scan makes it a completely secure scanner !
  • 🎈 Can scan Expiry date , Card Holder name and Card Issuer (lacked by other scanners) along with the Card number
  • 🔋Powered by Google's Machine Learning models
  • ⚡ Great performance and accuracy
  • 🧹Auto checks the card number for errors using card checksum algorithms
  • 🎚Supports controlling parameters that determine the balance between speed and accuracy
  • ❤️ Simple, powerful, & intuitive API

Get Demo App Here :

Vision App

Install

Add this to your package's pubspec.yaml file:

dependencies:
  card_scanner: <latest-version>

get the latest version number here

Usage

Just import the package and call scanCard:

import 'package:card_scanner/card_scanner.dart';
var cardDetails = await CardScanner.scanCard();

print(cardDetails);

Example Output:

Card Number = 5173949117389006
Expiry Date = 11/26

The above code opens the device camera, looks for a valid card and gets the required details and returns the CardDetails object.


Scan Options

If you wish to obtain the card holder name and card issuer, you can specify the options:

import 'package:card_scanner/card_scanner.dart';
var cardDetails = await CardScanner.scanCard(
    scanOptions: CardScanOptions(
        scanCardHolderName: true,
        scanCardIssuer: true,
    ),
);


print(cardDetails);

Example Output :

Card Number = 5173949117389006
Expiry Date = 11/26
Card Issuer = mastercard
Card Holder Name = PAUL SAMUELSON

iOS Requirements

  • The minimum target for iOS should be >= 12.0.0
  • Comment out the use_frameworks! line from under Podfile of your Flutter project. You can find this Podfile under your_flutter_project/ios/Podfile

About

A flutter package for Fast, Accurate and Secure Credit card & Debit card scanning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 33.0%
  • Kotlin 22.4%
  • C++ 15.8%
  • CMake 12.9%
  • Dart 7.5%
  • Java 3.3%
  • Other 5.1%