epay-chargily-python
Chargily ePay Gateway (Python Library)
This Plugin is to integrate ePayment gateway with Chargily easily.
- Currently support payment by CIB / EDAHABIA cards and soon by Visa / Mastercard
- This repo is recently created for Python Library, If you are a developer and want to collaborate to the development of this library, you are welcomed!
Instalation
chargily-epay
this is sync version using requests library
pip install chargily-epay-python
chargily-epay-async
this is async version using aiohttp library
pip install chargily-epay-Async
Quickstart
Simple example
from chargily_lib.constant import EDAHABIA
from chargily_lib.invoice import Invoice
from chargily_lib.utils import extract_redirect_url
from chargily_lib.sync_lib.webhook import make_payment
API_KEY = "YOUR-API-KEY"
invoice = Invoice()
invoice.client = "Tarek berkane"
invoice.client_email = 'example@gmail.com'
invoice.invoice_number = '1'
invoice.mode = EDAHABIA
invoice.amount = 10000
invoice.discount = 0
invoice.comment = 'my first invoice payment.'
invoice.back_url = 'https://example.com/'
invoice.webhook_url = 'https://example.com/'
response = make_payment(invoice, API_KEY)
if response.status_code == 201:
print(extract_redirect_url(response.content))
Contribution tips
- Make a fork of this repo.
- Take a tour to our API documentation here
- Get your API Key/Secret from ePay by Chargily dashboard for free.
- Start developing.
- Finished? Push and merge.
Metadata
Release files for chargily-epay-python 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chargily-epay-python-0.0.2.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chargily_epay_python-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / chargily-epay-python-0.0.2.tar.gz
| Download URL | chargily-epay-python-0.0.2.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28089e9b218522da0c45dc7e250184addf0421aad5352824a0c957673636d1df
|
|
BLAKE2b-256 checksum How to use checksums |
2eaf2fd9407421100a059362d0ea5bc8bc9b398a565d9ddfab6970466e897987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / chargily_epay_python-0.0.2-py3-none-any.whl
| Download URL | chargily_epay_python-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
168099a285a8b02dde72de0787c67c352b98be94d62c586321887fc911e31f51
|
|
BLAKE2b-256 checksum How to use checksums |
034f74609f55089e16499906fb54e338ffd4b26d685daa2670d5a8694621e761
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|