customPrinter method

Future<bool> customPrinter(
  1. StonePrinterParams stonePrinterParams
)

Function to send custom printer parameters

Implementation

Future<bool> customPrinter(StonePrinterParams stonePrinterParams) async {
  try {
    await channel.invokeMethod(PaymentTypeCall.customPrinter.method, {
      "printerParams": stonePrinterParams.toJson(),
    });
    return true;
  } catch (e) {
    return false;
  }
}