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-Async 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 | Provenance | Actions |
|---|---|---|---|---|
| chargily-epay-Async-0.0.2.tar.gz | 6.2 kB | Without provenance | Details for chargily-epay-Async-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chargily_epay_Async-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for chargily_epay_Async-0.0.2-py3-none-any.whl |
Total release size: 13.1 kB
Release files / chargily-epay-Async-0.0.2.tar.gz
| Download URL | chargily-epay-Async-0.0.2.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d488684bf1da1cfcb9f0507779c01b76f37f407911d171ce6c4cc14c512e186
|
|
BLAKE2b-256 checksum How to use checksums |
04b89193378f42daf966eabd89a47686e9fb2d7817b0019a55c226c0f94a9f64
|
| 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_Async-0.0.2-py3-none-any.whl
| Download URL | chargily_epay_Async-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a008d12deb880cf73a7499ffc0f366b76c50be38383c5d339c86b667043928e9
|
|
BLAKE2b-256 checksum How to use checksums |
468a40ee6f76f9052984be29ea4c6b90ab363baf6c34830228f20e6e59d399df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for chargily-epay-Async 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.