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

Could you provide a working sample code that archives what's displayed on the gif? #32

Closed BtMwanza closed 2 years ago

BtMwanza commented 3 years ago

I have looked at this repository for weeks and I still can't make the payment work due to some missing parts of the code, like the handleOnRedirect function. It would be easier if a working code sample is provided.

thecodecafe commented 3 years ago

Hi @BtMwanza, sorry to hear you're having a hard time with the docs, we'll definitely work on improving it.

To display a payment button you can use the following. https://github.com/Flutterwave/flutterwave-react-native#paywithflutterwave

Here's an example of what the handleOnRedirect function will receive. https://github.com/Flutterwave/flutterwave-react-native#redirectparams

Hope this helps point you in the right direction.

Also, feel free to share your pain points with the docs, you can let me know what you tried, your expectations, and the unwanted results.

Please let me know if this worked for you.

Thanks.

Stancobridge commented 2 years ago

the documentation is really poor, am generating payment from backend for some reasons I need to do some checks before creating payment link and saving the link in the db, I can't see how to use this link in the app working on