RavePayInitializer class

Constructors

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? companyName, String? paymentPlan, bool displayAmount = true, bool displayEmail = true, String redirectUrl = "https://payment-status-page.firebaseapp.com/", String? payButtonText})

Properties

acceptAccountPayments bool
Whether to request account payment details
getter/setter pair
acceptAchPayments bool
Whether to accept US and South African ACH payments. US and USD needs to be set as country and currency respectively
getter/setter pair
acceptCardPayments bool
Whether to request card payment details
getter/setter pair
acceptGHMobileMoneyPayments bool
Whether to request Ghana mobile money payment details. GH and GHS needs to be set as country and currency respectively
getter/setter pair
acceptMobileMoneyFrancophoneAfricaPayments bool
Whether to request Mobile Money Francophone Africa payment details. NG and XOF or XAF needs to be set as country and currency respectively
getter/setter pair
acceptMpesaPayments bool
Whether to request Mpesa payment details. KE and KES needs to be set as country and currency respectively
getter/setter pair
acceptUgMobileMoneyPayments bool
Whether to request Uganda Mobile Money payment details. UG and UGX needs to be set as country and currency respectively
getter/setter pair
amount double?
The amount to be charged in the supplied currency. Must be a valid non=null and positive double. Otherwise, the customer will be asked to input an amount (this is especially useful for donations).
getter/setter pair
Your company's logo. Displayed on the top-left of the payment prompt. Displays Flutterwave's logo if null
getter/setter pair
companyName Widget?
Company name. Displayed on the top right of the payment prompt. If null and staging is true, a "Demo" text is displayed.
getter/setter pair
country String
ISO 3166-1 alpha-2 country code (e.g US, NG). Defaults to NG
getter/setter pair
currency String
An ISO 4217 currency code (e.g USD, NGN). I cannot be empty or null. Defaults to NGN
getter/setter pair
displayAmount bool
Whether to display the amount in the payment prompt
getter/setter pair
displayEmail bool
Whether to display the email in the payment prompt
getter/setter pair
displayFee bool
Whether to display the transaction fee to customer before processing payment
getter/setter pair
email String?
Your customer email. Must be provided otherwise your customer will be promted to input it
getter/setter pair
encryptionKey String
Rave's merchant encryption key
getter/setter pair
fName String
Your customer's first name.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isPreAuth bool
Whether to preauthorize the transaction. See: https://developer.flutterwave.com/reference#introduction-1
getter/setter pair
lName String
Your customer's last name.
getter/setter pair
meta Map<String, String?>?
Your custom data in key-value pairs
getter/setter pair
narration String
Custom description added by the merchant.
getter/setter pair
orderRef String?
Order reference. Unique ref for the mobile money transaction to be provided by the merchant. Required for mobile money francophone africa payments
getter/setter pair
payButtonText String?
The text that is displayed on the pay button. Defaults to "Pay amount"
getter/setter pair
paymentPlan String?
plan id for recurrent payments. Only available for card payment. More info:
getter/setter pair
publicKey String
Rave's merchant account public key.
getter/setter pair
redirectUrl String
URL to redirect to when a transaction is completed. This is useful for 3DSecure payments so we can redirect your customer back to a custom page you want to show them.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
staging bool
Whether to route the payment to Sandbox APIs.
getter/setter pair
subAccounts List<SubAccount>?
As list of sub-accounts. Sub accounts are your vendor's accounts that you want to settle per transaction. See https://developer.flutterwave.com/docs/split-payment
getter/setter pair
txRef String?
Transaction reference. It cannot be null or empty
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited