generatePrintReceipt method
Generate receipt optimized for printing based on saved printer settings
Implementation
Future<Uint8List> generatePrintReceipt({
required LokotroPayOnResponse paymentResponse,
String? merchantName,
String? merchantAddress,
String? customerName,
String? customerEmail,
Map<String, dynamic>? additionalInfo,
}) async {
// Get saved printer type
final printerType = await LokotroPrinterSettingsService.instance.getPrinterType();
return _generateReceiptForPrinter(
paymentResponse: paymentResponse,
merchantName: merchantName,
merchantAddress: merchantAddress,
customerName: customerName,
customerEmail: customerEmail,
additionalInfo: additionalInfo,
printerType: printerType,
);
}