generatePaymentReceipt method

Future<Uint8List> generatePaymentReceipt({
  1. required LokotroPayOnResponse paymentResponse,
  2. String? merchantName,
  3. String? merchantAddress,
  4. String? customerName,
  5. String? customerEmail,
  6. Map<String, dynamic>? additionalInfo,
})

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
  );
}