activePinpadWithCredentials method

Future<bool> activePinpadWithCredentials({
  1. required String appName,
  2. required String stoneCode,
  3. required String qrCodeAuthroization,
  4. required String qrCodeProviderid,
  5. bool printCustomerSlip = true,
})

Create external functions from invoke methodChannel Function to active pinpad with SDK the Stone with credentials

Implementation

Future<bool> activePinpadWithCredentials({
  required String appName,
  required String stoneCode,
  required String qrCodeAuthroization,
  required String qrCodeProviderid,
  bool printCustomerSlip = true,
}) async {
  try {
    await channel.invokeMethod(PaymentTypeCall.activePinpadCredentials.method, {
      "appName": appName,
      "stoneCode": stoneCode,
      "qrCodeAuthorization": qrCodeAuthroization,
      "qrCodeProviderid": qrCodeProviderid,
      "printCustomerSlip": printCustomerSlip,
    });
    return true;
  } catch (e) {
    return false;
  }
}