PGKit constructor

const PGKit({
  1. Key? key,
  2. required String terminalId,
  3. required String mid,
  4. required double amount,
  5. required String name,
  6. required String email,
  7. required int mobile,
  8. required String txnType,
  9. required String paymentMode,
  10. required String? currency,
  11. required Widget child,
  12. required dynamic onError(
    1. PgInvoiceResponse error
    ),
  13. required dynamic onSuccess(
    1. PgInvoiceResponse success
    ),
  14. required String pgKey,
  15. required String pgIv,
  16. required bool test,
  17. String? ru,
  18. required String udf4,
  19. required String udf5,
  20. required String udf6,
  21. required String udf7,
  22. required String udf8,
  23. required String udf9,
  24. required String udf10,
  25. required String callbackUrl,
  26. required String? merchantTransactionId,
  27. required String? transactionDate,
  28. String? txnNote = '',
  29. required String? productType,
})

Implementation

const PGKit({
  super.key,
  required this.terminalId,
  required this.mid,
  required this.amount,
  required this.name,
  required this.email,
  required this.mobile,
  required this.txnType,
  required this.paymentMode,
  required this.currency,
  required this.child,
  required this.onError,
  required this.onSuccess,
  required this.pgKey,
  required this.pgIv,
  required this.test,
  this.ru,
  required this.udf4,
  required this.udf5,
  required this.udf6,
  required this.udf7,
  required this.udf8,
  required this.udf9,
  required this.udf10,
  required this.callbackUrl,
  required this.merchantTransactionId,
  required this.transactionDate,
  this.txnNote ='',
  required this.productType,

});