Flutterwave.forUIPayment constructor

Flutterwave.forUIPayment({
  1. required BuildContext context,
  2. required String publicKey,
  3. required String encryptionKey,
  4. required String currency,
  5. required String amount,
  6. required String email,
  7. required String fullName,
  8. required String txRef,
  9. required bool isDebugMode,
  10. required String phoneNumber,
  11. int? frequency,
  12. int duration = 0,
  13. bool isPermanent = false,
  14. String narration = "",
  15. bool acceptAccountPayment = false,
  16. bool acceptCardPayment = false,
  17. bool acceptUSSDPayment = false,
  18. bool acceptRwandaMoneyPayment = false,
  19. bool acceptMpesaPayment = false,
  20. bool acceptZambiaPayment = false,
  21. bool acceptGhanaPayment = false,
  22. bool acceptUgandaPayment = false,
  23. bool acceptFrancophoneMobileMoney = false,
  24. bool acceptBankTransfer = false,
  25. String redirectUrl = "",
})

Flutterwave Constructor

Implementation

Flutterwave.forUIPayment({
  required this.context,
  required this.publicKey,
  required this.encryptionKey,
  required this.currency,
  required this.amount,
  required this.email,
  required this.fullName,
  required this.txRef,
  required this.isDebugMode,
  required this.phoneNumber,
  this.frequency,
  this.duration = 0,
  this.isPermanent = false,
  this.narration = "",
  this.acceptAccountPayment = false,
  this.acceptCardPayment = false,
  this.acceptUSSDPayment = false,
  this.acceptRwandaMoneyPayment = false,
  this.acceptMpesaPayment = false,
  this.acceptZambiaPayment = false,
  this.acceptGhanaPayment = false,
  this.acceptUgandaPayment = false,
  this.acceptFrancophoneMobileMoney = false,
  this.acceptBankTransfer = false,
  this.redirectUrl = ""

}) {
  _validateKeys();
  this.currency = this.currency.toUpperCase();
  _setPaymentTypes();
}