RavePayInitializer constructor

RavePayInitializer({
  1. required double? amount,
  2. required String publicKey,
  3. required String encryptionKey,
  4. String currency = Strings.ngn,
  5. String country = Strings.ng,
  6. String narration = '',
  7. String fName = '',
  8. String lName = '',
  9. Map<String, String?>? meta,
  10. List<SubAccount>? subAccounts,
  11. bool acceptAchPayments = false,
  12. bool acceptMpesaPayments = false,
  13. bool acceptCardPayments = true,
  14. bool acceptAccountPayments = true,
  15. bool acceptGHMobileMoneyPayments = false,
  16. bool acceptUgMobileMoneyPayments = false,
  17. bool acceptMobileMoneyFrancophoneAfricaPayments = false,
  18. bool isPreAuth = false,
  19. bool displayFee = true,
  20. bool? staging,
  21. String? email,
  22. String? txRef,
  23. String? orderRef,
  24. Widget? companyName,
  25. String? paymentPlan,
  26. bool displayAmount = true,
  27. bool displayEmail = true,
  28. String redirectUrl = "https://payment-status-page.firebaseapp.com/",
  29. 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;