gpTomTransactionType function
GP-Tom-transactionType aus cardPaymentData: das Plugin-toMap
schreibt den Key mit Tippfehler (transacitonType), ältere Daten ohne.
Implementation
String gpTomTransactionType(Map<String, dynamic> data) {
switch (data['transactionType'] ?? data['transacitonType']) {
case 1: return 'Sale';
case 2: return 'Void';
case 3: return 'Refund';
case 4: return 'Close Batch';
}
return '';
}