Flutterwave.forUIPayment constructor
Flutterwave.forUIPayment({
- required BuildContext context,
- required String publicKey,
- required String encryptionKey,
- required String currency,
- required String amount,
- required String email,
- required String fullName,
- required String txRef,
- required bool isDebugMode,
- required String phoneNumber,
- int? frequency,
- int duration = 0,
- bool isPermanent = false,
- String narration = "",
- bool acceptAccountPayment = false,
- bool acceptCardPayment = false,
- bool acceptUSSDPayment = false,
- bool acceptRwandaMoneyPayment = false,
- bool acceptMpesaPayment = false,
- bool acceptZambiaPayment = false,
- bool acceptGhanaPayment = false,
- bool acceptUgandaPayment = false,
- bool acceptFrancophoneMobileMoney = false,
- bool acceptBankTransfer = false,
- 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();
}