Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Logo

FLWAVE LIBRARY

This Library Enables Easy Integration of Standard Flutterwave API into a python project New or Existing. It contains functions to initiate and Verify Transaction(s).

Installation

To install the package via pip use:

  pip install flwave
from flwave import flwaveapi

Usage/Examples

  1. To Initiate a transaction:
from flwaveapi import create_transaction
  1. To Verfify A Transaction Using Transaction Reference:
from flwaveapi import verify_transaction
  1. To Verify a Transaction using Transaction ID:
from flwaveapi import verfify_transaction
  1. To Create Refund for a transaction:
from flwaveapi import make_refund
  1. To get transaction details (Single or Multiple):
from flwaveapi import transaction_details

LIBRARY FUNCTIONS

Funtion Required Arguments Description
create_transaction keystring, amountfloat, e-mailstring, redirect_urlstring This function makes a POST request to flutterwave payment API and returns a unique payment link.
verify_transaction keystring,txn_refstring This function makes a GET request to flutterwave verify Transaction API and returns a Dict Containing Details of Transaction.
make_refund keystring, txn_idint This function makes a POST request to make a refund in a disputed Transaction.
transaction_details keystring This function makes a GET request to flutterwave and returns a Dict Containing Details of Transaction.

more parameters and detailed descriptions about the functions can be gotten by used the help function . example help(create_transaction)

The Output of each Function above is a python dictionary.This dictionary should be parsed to retrieve needed information.

Contributing

Contributions are always welcome!

Please feel free to reach out to the creator for pull request and other possible questions regarding the use of this library.

Documentation

For more info visit Flutterwave official API Docs:

Documentation

License

MIT License

Appendix

PYPI Link: https://pypi.org/project/flwave/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors