Python sdk for payUnit payments, including Mtn momo,Orange momo,Express Unionsr
Project description
PayUnit
An python payment sdk for MTN Mobile Money,Orange Money,Express Union and Yup transactions.
Installation
pip install payunit
Usage
- Firstly, Create an instance of payunit, passing as parameter a dictionary with properties
- user_api
- Your user api from payunit dashboard.
- password_api
- Your user password api from payunit dashboard.
- api_key
- Your user password api from payunit dashboard.
- return_url
- The return url to your website, for either transaction completed successfully or transaction failed.
- Call the make payment method, passing in the amount for the transaction as parameter
Example
from payunit import payunit
# Enter your config details as parameters
payment = payunit({
"user_api": "Your_User_Api",
"password_api": "Your_Password_Api",
"api_key": "Your_User_Api_Kay",
"return_url": "Return_Url_To_Your_Website"
})
# Spawns a new transaction process of 4000
payment.makePayment(4000)
Change Log
0.0.1 (28/09/2020)
- First Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
payUnit-0.0.6.tar.gz
(3.5 kB
view hashes)