Dart implementation of the specification 'Biblioteca Compartilhada v1.08a'.
Disclaimer: this library does not care about the the physical layer of the communication. In other words, you should be able to open a stream to the pinpad by yourself either by bluetooth, serial port, tcp/udp sockets or any other communication port.
import 'package:bc108/bc108.dart';
// Connect to your pinpad and acquire a stream and a sink of int (byte)
Stream<int> stream = ...;
Sink<int> sink = ...;
final pinpad = Pinpad.fromStreamAndSink(stream, sink);
final dr = await pinpad.display(DisplayRequest("Hello" /* first line */, "World!" /* second line */));
print("📺 Command Status: ${dr.status}");
final tr = await pinpad.getTimestamp(GetTimestampRequest(3 /* acquirer 3 */));
print("🕐 Command Status: ${tr.status}");
print("🕐 The timestamp is ${tr.data.timestamp}");
- ✅
open
- ✅
close
- ✅
display
- ⬜
displayEx
- ✅
getKey
- ⬜
getPIN
- ✅
removeCard
- ⬜
genericCmd
- ⬜
checkEvent
- ✅
getCard
/resumeGetCard
- ✅
goOnChip
- ✅
finishChip
- ⬜
chipDirect
- ⬜
changeParameter
- ✅
getInfo00
- ⬜
getInfo
- ⬜
encryptBuffer
- ✅
tableLoadInit
- ✅
tableLoadRec
- ✅
tableLoadEnd
- ⬜
getDUKPT
- ✅
getTimeStamp
- ⬜
defineWKPAN
Did you find this project useful? Consider making a donation.