Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rave_flutter: 0.0.9-alpha+1 , always show error phonenumber is required #31

Open
Bharavi26 opened this issue Jun 8, 2020 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Bharavi26
Copy link

RaveResult{status: RaveStatus.error, rawResponse: null, message: phonenumber is required}
there is no any field to pass phonenumber in RavePayInitializer, then how can i pass phonenumber to that

@wilburx9
Copy link
Owner

wilburx9 commented Jun 8, 2020

Please, can you paste the construction of the RavePayInitializer?

@Bharavi26
Copy link
Author

var initializer = RavePayInitializer(
amount: double.parse(mainamt),
encryptionKey: Constant.FlutterwaveEncKey,
publicKey: Constant.FlutterwavePubKey,
subAccounts: null)
//subAccounts: subAccounts.isEmpty ? null : null)
//..country = country = country != null && country.isNotEmpty ? country : "NG"
//..currency = currency != null && currency.isNotEmpty ? currency : "NGN"
..currency = Constant.CURRENCYCODE
..country = Constant.COUNTRY
..email = uemail
..fName = uname
//..lName = lastName
//..narration = narration ?? ''
..txRef = "${uuserid}${pkgid}${new DateTime.now().millisecond}"
..orderRef = "${uuserid}${pkgid}${new DateTime.now().millisecond}"
..acceptMpesaPayments = true
..acceptAccountPayments = true
..acceptCardPayments = true
..acceptAchPayments = true
//..acceptGHMobileMoneyPayments = acceptGhMMPayments
//..acceptUgMobileMoneyPayments = acceptUgMMPayments
//..acceptMobileMoneyFrancophoneAfricaPayments = acceptMMFrancophonePayments
..displayEmail = true
..displayAmount = true;

  //..staging = false;

  //..staging = !live
  //..isPreAuth = preAuthCharge
  //..displayFee = shouldDisplayFee;

var response = await RavePayManager().prompt(context: context, initializer: initializer);
print(response);
scaffoldKey.currentState.showSnackBar(SnackBar(content: Text(response?.message)));

@Bharavi26
Copy link
Author

@Wilburt sir..please help me for that error.
i am stuck on this issue from last 2 days

@wilburx9 wilburx9 self-assigned this Nov 1, 2020
@wilburx9 wilburx9 added the bug Something isn't working label Nov 1, 2020
@wilburx9
Copy link
Owner

wilburx9 commented Nov 1, 2020

Please, at what point does it display this error? A video will be appreciated.

@HetalGohil
Copy link

sir any update on this..i am also getting phone number is required after i enter pin then this message is appear no otp screen is showing

@Yonkokilasi
Copy link

I am getting the same . This is my constructor
var initializer = RavePayInitializer( amount: 10, publicKey: secret.firstKey, encryptionKey: secret.secondKey) ..country = "KE" ..currency = "KES" ..email = busines.billerEmail ..fName = busines.billerName ..txRef = "subscription renewal of ${_getPlanName(busines.package.toLowerCase())}" ..acceptMpesaPayments = true ..acceptAccountPayments = true ..acceptCardPayments = true ..acceptGHMobileMoneyPayments = false ..acceptUgMobileMoneyPayments = false ..staging = false ..isPreAuth = true ..displayFee = true;

When I select pay with card and follow all the steps until : Enter your billing details, I get the error
RaveResult{status: RaveStatus.error, rawResponse: null, message: phonenumber is required}
However there is no input for phone number in the RavePayInitializer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants