Flutterwave / React-Native

React Native library for Flutterwave for Business (F4B) v2 and v3 APIs.
https://developer.flutterwave.com/
MIT License
6 stars 13 forks source link

401, Invalid public key passed #61

Closed bobaikato closed 1 year ago

bobaikato commented 1 year ago

We are using this Lib on our app, but doesn't seem to work. Our public key is the same as the dashboard. can you please support.

image

RESPONSE

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

REQUEST

{
  "amount": 100,
  "currency": "NGN",
  "customer": {
    "name": "Public Gives NG",
    "email": "xxxx@public.gives"
  },
  "public_key": "FLWPUBK_TEST-c84bd5bcd65d1d9693f6cccfa0d94304-X",
  "tx_ref": "157481071"
}
bobaikato commented 1 year ago

@Salman-007-Pro adding you here for visibility

bobaikato commented 1 year ago

here is a public CodePen showing our public is working fine https://codepen.io/BobaiKato/pen/KKBOrxM

bobaikato commented 1 year ago

Here is also a React Native sample giving the same error. Please support. https://snack.expo.dev/@salman-asif-007/flutterwave?platform=ios

image