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

customButton props.onPress stopped working #62

Closed Zeusmist closed 1 year ago

Zeusmist commented 1 year ago

Hi guys, All of a sudden the onPress function passed through props in customButton stopped opening the flutterwave payment modal.

Is there a limit to usage? I'm currently using test env.

mwelwankuta commented 1 year ago

usually this could be because of missing options could you confirm that you have a correct options, including the customer email which seems to be a requied field

options={{
   payment_options: "mobile_money_zambia",
   tx_ref: Date.now().toString(),
   authorization: "YOUR AUTHORIZATION TOKEN",
   amount: orderTotal,
   currency: "ZMW",
   customer: {
     email: "customeremail@email.com",
     name: "customer name",
     phonenumber: "",
   },
}}
Zeusmist commented 1 year ago

@mwelwankuta It works now. It happened around the recent hack. I think FLW servers denied the request. Thanks for the support.

mwelwankuta commented 1 year ago

@mwelwankuta It works now. It happened around the recent hack. I think FLW servers denied the request. Thanks for the support.

you're welcome.