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).
To install the package via pip use:
pip install flwavefrom flwave import flwaveapi- To Initiate a transaction:
from flwaveapi import create_transaction- To Verfify A Transaction Using Transaction Reference:
from flwaveapi import verify_transaction- To Verify a Transaction using Transaction ID:
from flwaveapi import verfify_transaction- To Create Refund for a transaction:
from flwaveapi import make_refund- To get transaction details (Single or Multiple):
from flwaveapi import transaction_details| 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.
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.
For more info visit Flutterwave official API Docs:
PYPI Link: https://pypi.org/project/flwave/
