RavePayInitializer constructor
RavePayInitializer({
- required double? amount,
- required String publicKey,
- required String encryptionKey,
- String currency = Strings.ngn,
- String country = Strings.ng,
- String narration = '',
- String fName = '',
- String lName = '',
- Map<
String, String?> ? meta, - List<
SubAccount> ? subAccounts, - bool acceptAchPayments = false,
- bool acceptMpesaPayments = false,
- bool acceptCardPayments = true,
- bool acceptAccountPayments = true,
- bool acceptGHMobileMoneyPayments = false,
- bool acceptUgMobileMoneyPayments = false,
- bool acceptMobileMoneyFrancophoneAfricaPayments = false,
- bool isPreAuth = false,
- bool displayFee = true,
- bool? staging,
- String? email,
- String? txRef,
- String? orderRef,
- Widget? companyLogo,
- Widget? companyName,
- String? paymentPlan,
- bool displayAmount = true,
- bool displayEmail = true,
- String redirectUrl = "https://payment-status-page.firebaseapp.com/",
- String? payButtonText,
Implementation
RavePayInitializer({
required this.amount,
required this.publicKey,
required this.encryptionKey,
this.currency = Strings.ngn,
this.country = Strings.ng,
this.narration = '',
this.fName = '',
this.lName = '',
this.meta,
this.subAccounts,
this.acceptAchPayments = false,
this.acceptMpesaPayments = false,
this.acceptCardPayments = true,
this.acceptAccountPayments = true,
this.acceptGHMobileMoneyPayments = false,
this.acceptUgMobileMoneyPayments = false,
this.acceptMobileMoneyFrancophoneAfricaPayments = false,
this.isPreAuth = false,
this.displayFee = true,
bool? staging,
this.email,
this.txRef,
this.orderRef,
this.companyLogo,
this.companyName,
this.paymentPlan,
this.displayAmount = true,
this.displayEmail = true,
this.redirectUrl = "https://payment-status-page.firebaseapp.com/",
this.payButtonText,
}) : this.staging = staging ?? isInDebugMode;