generatePaymentReceipt method
Generate payment receipt PDF for download (A4 format)
Implementation
Future<Uint8List> generatePaymentReceipt({
required LokotroPayOnResponse paymentResponse,
String? merchantName,
String? merchantAddress,
String? customerName,
String? customerEmail,
Map<String, dynamic>? additionalInfo,
}) async {
return _generateReceiptForPrinter(
paymentResponse: paymentResponse,
merchantName: merchantName,
merchantAddress: merchantAddress,
customerName: customerName,
customerEmail: customerEmail,
additionalInfo: additionalInfo,
printerType: LokotroPrinterType.a4210mm, // Always A4 for download
);
}