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

Wrong public Key error #34

Closed
drosarl opened this issue Jul 11, 2020 · 6 comments
Closed

Wrong public Key error #34

drosarl opened this issue Jul 11, 2020 · 6 comments

Comments

@drosarl
Copy link

drosarl commented Jul 11, 2020

We am getting this error while using Francophone Mobile Money from Ivory coast

{"status":"error","message":"Invalid public key passed","data":{"code":"INV_PUBK","message":"Invalid public key passed"}}

I have checked the keys on Flutterwave dashboard and it's correct.
I have even tried to use the secret key instead but I keep getting this error.
I have also tried to generate a new public key, but still

as a side note i am getting this error on sandbox mode:

flutter: Response Text:
flutter: {"status":"success","message":"Charged fee","data":{"charge_amount":"200.00","fee":2.8,"merchantfee":"0","ravefee":"2.8","stampdutyfee":0,"currency":"XOF"}}
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method '[]=' was called on null.
Receiver: null
Tried calling: []=("orderRef", "531ce346-d40f-4313-ab36-ba368a3a07e4")
#0      Object.noSuchMethod  (dart:core-patch/object_patch.dart:53:5)
#1      Payload.toJson 
package:rave_flutter/…/dto/payload.dart:142
#2      new ChargeRequestBody.fromPayload 
package:rave_flutter/…/dto/charge_request_body.dart:23
#3      MMFrancophoneTransactionManager.charge 
package:rave_flutter/…/manager/mm_francoophone_transaction_manager.dart:24
#4      BaseTransactionManager.displayFeeDialog.charge 
package:rave_flutter/…/manager/base_transaction_manager.dart:125
#5      GestureRecognizer.invokeCallback 
package:flutter/…/gestures/recognizer.dart:182
#6      TapGestureRecognizer.handleTapUp 
package:flutter/…/gestures/tap.dart:504
#7      BaseTapGestureRecognizer._checkUp 
package:flutter/…/gestures/tap.dart:282
#8      BaseTapGestureRecognizer.acceptGestu<…>

I don't know if it is wanted or not but it cause the loader to keep rolling until i manually close the box so I can't continue on the next API implementation my app.

@fried19
Copy link

fried19 commented Aug 24, 2020

Now I have the same public key error too.

@Rioland
Copy link

Rioland commented Sep 3, 2020

am having the same issue

@fried19
Copy link

fried19 commented Sep 4, 2020

@Rioland you have to make sure that ..staging=false because when it is true you must provide the sendBox mode public key which is defferent from the live mode public key

@mopilo
Copy link

mopilo commented Oct 12, 2020

@fried19 tried making ..staging= false. got this error

RaveResult{status: RaveStatus.error, rawResponse: null, message: ER_CANT_AGGREGATE_2COLLATIONS: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='}

@wilburx9
Copy link
Owner

wilburx9 commented Nov 1, 2020

@fried19 tried making ..staging= false. got this error

RaveResult{status: RaveStatus.error, rawResponse: null, message: ER_CANT_AGGREGATE_2COLLATIONS: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='}

@mopilo this has been addressed in #47.

@wilburx9
Copy link
Owner

wilburx9 commented Nov 1, 2020

I will be closing this issue for now. If @fried19 's doesn't work for you, please feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants