Chargily ePay Gateway (Python Library)
Project description
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.
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
Built Distribution
Close
Hashes for chargily-epay-Async-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b73d44c1005cdbec665cdeaa1c2ede6da8929d6fad7c526f54da35f595465dae |
|
MD5 | 47ce7fceb16cd4ca7cb33f4176955714 |
|
BLAKE2b-256 | 4a51eb025dd16a2484ea9ec7b6fd164cd3a91aa0b53e74d0c46ead45e060d8c5 |
Close
Hashes for chargily_epay_Async-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a87127b18ad80606e61322d750479cb5667a831dbbaaadbe213b87c66391f4f |
|
MD5 | e7b784b1fd57395349998bc20d7cc7f4 |
|
BLAKE2b-256 | 8b057dc436c121195ac3782275c0b18db6ad8864b3b393670c96cc6017b4b06c |