card_scanner 0.0.3 copy "card_scanner: ^0.0.3" to clipboard
card_scanner: ^0.0.3 copied to clipboard

outdated

Fast, Accurate and Secure Credit & Debit card scanner

💳 card_scanner #

Fast , Accurate and Secure Credit & Debit card scanner

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

Documentation & Samples 📖 #

Features #

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

Install #

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

dependencies:
  card_scanner: <latest-version>

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: CardScanOption (
        scanCardHolderName: true, 
        scanCardIssuer: true
    )
);


print(cardDetails)

Example Output :

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

112
likes
0
pub points
76%
popularity

Publisher

unverified uploader

Fast, Accurate and Secure Credit & Debit card scanner

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on card_scanner