TriposConfiguration.fastCardPresent constructor

TriposConfiguration.fastCardPresent({
  1. required HostConfiguration hostConfiguration,
  2. String? identifier,
  3. DeviceType deviceType = DeviceType.ingenicoMoby5500,
  4. String terminalId = '1234',
  5. bool contactlessAllowed = true,
  6. bool emvAllowed = true,
  7. bool quickChipAllowed = true,
  8. bool feeAssistEnabled = false,
  9. bool proceedWithoutSurchargeOnError = false,
  10. bool shouldConfirmSurchargeAmount = false,
  11. ApplicationConfiguration applicationConfiguration = const ApplicationConfiguration(),
  12. StoreAndForwardConfiguration storeAndForwardConfiguration = const StoreAndForwardConfiguration(),
})

Implementation

factory TriposConfiguration.fastCardPresent({
  required HostConfiguration hostConfiguration,
  String? identifier,
  DeviceType deviceType = DeviceType.ingenicoMoby5500,
  String terminalId = '1234',
  bool contactlessAllowed = true,
  bool emvAllowed = true,
  bool quickChipAllowed = true,
  bool feeAssistEnabled = false,
  bool proceedWithoutSurchargeOnError = false,
  bool shouldConfirmSurchargeAmount = false,
  ApplicationConfiguration applicationConfiguration =
      const ApplicationConfiguration(),
  StoreAndForwardConfiguration storeAndForwardConfiguration =
      const StoreAndForwardConfiguration(),
}) {
  return TriposConfiguration(
    hostConfiguration: hostConfiguration,
    deviceConfiguration: DeviceConfiguration.fastCardPresent(
      deviceType: deviceType,
      terminalId: terminalId,
      identifier: identifier,
      contactlessAllowed: contactlessAllowed,
    ),
    transactionConfiguration: TransactionConfiguration.fastCardPresent(
      emvAllowed: emvAllowed,
      quickChipAllowed: quickChipAllowed,
      feeAssistEnabled: feeAssistEnabled,
      proceedWithoutSurchargeOnError: proceedWithoutSurchargeOnError,
      shouldConfirmSurchargeAmount: shouldConfirmSurchargeAmount,
    ),
    applicationConfiguration: applicationConfiguration,
    storeAndForwardConfiguration: storeAndForwardConfiguration,
  );
}