activePinpad method

Future<bool> activePinpad({
  1. required String appName,
  2. required String stoneCode,
})

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

Implementation

Future<bool> activePinpad({
  required String appName,
  required String stoneCode,
}) async {
  try {
    await channel.invokeMethod(PaymentTypeCall.activePinpad.method, {"appName": appName, "stoneCode": stoneCode});
    return true;
  } catch (e) {
    return false;
  }
}