Is there any way to scan a credit card in flutter? i tried Card IO plug in and i tried using it but when i open the camera, it just shows me a box and when i focus on the card nothing happens.
Package used: https://pub.dartlang.org/packages/flutter_card_io
FlatButton(
onPressed: () async {
Map<String, dynamic> details = await FlutterCardIo.scanCard({
"requireExpiry": true,
"scanExpiry": true,
"requireCVV": false,
"requirePostalCode": false,
"restrictPostalCodeToNumericOnly": false,
"requireCardHolderName": false,
"scanInstructions": "Fit the card within the box",
});
print(details);
},
child: Text("Test"),
),
pubspec.yaml
dependencies:
flutter_card_io:
git:
url: git://github.com/procedurallygenerated/flutter_card_io.git
If there is any possible way that anyone knows of i would be grateful! I really need it for an important project i am doing.
Currently, there seems to be no other plugin publicly available for Flutter. However, the one you mentioned should work fine. Try compiling the example application that comes with the plugin and use multiple cards to test it. Keep in mind that Card.io only works with cards that have raised digits.