This Package is created with the aim of facilitating the integration of web payment by orange money into python projects
Project description
O_money
Introduction
For use Orange Money Web Payment on web.
Installation
The latest version can be obtained from PyPI:
pip install O-money
Usage
For use O_money create .env file and define the following variable
client_id, merchant_key, return_url, cancel_url, notif_url
Example
from O_money import o_webpay
import logging
l = logging.Logger("test")
webpay = o_webpay.Webpay(logger=l)
response = webpay.init_pay(amount=2500, order_id="5f64v", reference="154f5", lang="us")
print(response)
Then navigate to payment url (response.payment_url).
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
o_money-0.0.10.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file o_money-0.0.10.tar.gz
.
File metadata
- Download URL: o_money-0.0.10.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ab05897097df0f1622a9a6a0bf33044bfa4357f342d849e3b703381526b65b |
|
MD5 | 71d2c7ba7065e384718a594bc163081e |
|
BLAKE2b-256 | 825107dc1837ac2a140a1cd78b69e984eee7707e91a31d31b51d9762aa8d89ce |
File details
Details for the file O_money-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: O_money-0.0.10-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ddbee1abff97a53728ac30e44231403b9039ccb6cecc271ee05d195fbac4e3c |
|
MD5 | 6f95a6c213a12214f3d94c86cab66dc9 |
|
BLAKE2b-256 | 7591fec3eb6471fa728564fefb19c00e9a7d80df63df7532a311f8445d735138 |