IAmwalSdkSettings constructor

IAmwalSdkSettings({
  1. void onResponse(
    1. String?
    )?,
  2. String? customerId,
  3. void customerCallback(
    1. String?
    )?,
  4. required String sessionToken,
  5. required String token,
  6. String? secureHashValue,
  7. required String merchantId,
  8. required List<String> terminalIds,
  9. required String transactionId,
  10. required String currency,
  11. required String amount,
  12. required OnPayCallback onPay,
  13. int countDownInSeconds = 90,
  14. double? maxTransactionAmount = 5000,
  15. GetTransactionFunction? getTransactionFunction,
  16. void onError(
    1. Object e,
    2. StackTrace stack
    )?,
  17. OnPayCallback? onCountComplete,
  18. String? merchantName,
  19. AmwalLoggerFunction? logger,
  20. String? flavor,
  21. Map<String, String>? additionValues,
  22. Locale locale = const Locale('en'),
  23. bool isMocked = false,
  24. TransactionType transactionType = TransactionType.cardWallet,
  25. Future<String?> onTokenExpired()?,
  26. void log(
    1. String,
    2. Map<String, dynamic> param
    )?,
  27. Environment? environment,
})

Implementation

IAmwalSdkSettings({
  this.onResponse,
  this.customerId,
  this.customerCallback,
  required this.sessionToken,
  required this.token,
  this.secureHashValue,
  required this.merchantId,
  required this.terminalIds,
  required this.transactionId,
  required this.currency,
  required this.amount,
  required this.onPay,
  this.countDownInSeconds = 90,
  this.maxTransactionAmount = 5000,
  this.getTransactionFunction,
  this.onError,
  this.onCountComplete,
  this.merchantName,
  this.logger,
  this.flavor,
  this.additionValues,
  this.locale = const Locale('en'),
  this.isMocked = false,
  this.transactionType = TransactionType.cardWallet,
  this.onTokenExpired,
  this.log,
  this.environment,
});