The Flutterwave Developer Documentation

We have put together comprehensive guidelines and documentation to help you get right into integrating any of our products quickly. You can also get support when you need help!

API Documentation    API Reference
Ask A Question

Questions

2
ANSWERED

Wrong public Key error on Flutter

Note: You can find this issue on github https://github.com/wilburt/rave_flutter/issues/34 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.

Posted by frediustcdev 10 months ago