Python Wrapper for interacting with the Flutterwave API

from python_flutterwave import payment

payment.token = 'YOUR_SECRET_KEY'

uri = payment.initiate_payment(tx_ref="qwerty", amount=100, redirect_url='your_callback_url',
                               payment_options='mpesa', customer_email='[email protected]',
                               customer_phone_number='0123456789', currency='KES', customer_name='John Doe',
                               title='Demo Payment', description='Just pay me...')
print(uri)
details = payment.get_payment_details(transaction_id)

 

 

 

To finish reading, please visit source site