displayEmail cannot be null
Closed this issue · 1 comments
Malik056 commented
Getting error displayEmail cannot be null, just copy pasted from Pub.dev
Help please,
Thanks,
var initializer = RavePayInitializer(
displayEmail: true,
displayAmount: true,
displayFee: true,
amount: amount,
publicKey: 'FLWPUBK-XXxxxxxxxxxXXxxxxxx-X',
encryptionKey: 'eded53xxxxxxxxxxxxxxx7d')
..country = "ZA"
..currency = "ZAR"
..email = "${user.email}"
..fName = "${user.firstName}"
..lName = "${user.lastName}"
..narration = ''
..txRef = user.userId + time.millisecondsSinceEpoch.toString()
..acceptAccountPayments = true
..acceptCardPayments = true
..acceptAchPayments = true
..acceptGHMobileMoneyPayments = true
..acceptUgMobileMoneyPayments = true
..staging = true
..isPreAuth = true
..displayFee = true;
// Initialize and get the transaction result
RaveResult response = await RavePayManager()
.initialize(context: context, initializer: initializer);
Malik056 commented
rebuilding solved it.