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
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_python-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b2013980a30cb2d066f60696f653f8cd28d7786d77d6371b4fe187976eb64a2 |
|
MD5 | a3518bbb71684943145451f14849ac5e |
|
BLAKE2b-256 | d715d762c14bb5d86962a579e57cbd5d428efa1342f248d1f8d206ca46be10b8 |
Close
Hashes for chargily_epay_python-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b94a3964570c686c9aef4414c2b6b91dd8dedff36532c12c44b0343091f2937 |
|
MD5 | 1794db21e32c15846956616a5eb62d16 |
|
BLAKE2b-256 | 5253aae63d26f6156b56f01ae5fbd1bc7cdbbe4bf2dd1d4b99789ccd8b40b2f7 |