Python package used to integrate Addispay web API
Project description
AddispayWeb
Python package used to integrating Addispay web API with your project.
import os
from dotenv import load_dotenv
from addispay import AddisPay
from utils import generate_unique
load_dotenv()
publickey = os.environ.get("publickey")
privatekey = os.environ.get("privatekey")
Auth = os.environ.get("Auth")
addispay = AddisPay(publickey, privatekey, Auth)
total_amount=12
tx_ref="TX-bcd"
currency="ETB"
first_name="Annis"
email="annis@gmail.com"
phone_number="0988888888"
last_name="Nelson",
session_expiration_minute=12
nonce=generate_unique([], 32)
notify_url="https://example.com/"
return_url="https://example.com/"
message="from customer to ..."
order_detail={}
response = addispay.send_request(total_amount=total_amount, tx_ref=tx_ref, currency=currency, first_name=first_name,email=email,phone_number=phone_number,last_name=last_name,session_expiration_minute=session_expiration_minute,nonce=nonce,notify_url=notify_url,return_url=return_url,message=message,order_detail=order_detail)
print(response.json)
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
addispayweb-0.1.0.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file addispayweb-0.1.0.tar.gz
.
File metadata
- Download URL: addispayweb-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b2845a841a36f3e50a292d0d890f0d4da8b6115c90c7b2bf49fe614ed150504 |
|
MD5 | 5ad07baccbb870c6a311789fb0ebd7c9 |
|
BLAKE2b-256 | 2271738be76fc1a27a787dae8e6b8abf45c83ec0565f2ddd54b16b99861de8b3 |
File details
Details for the file addispayweb-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: addispayweb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a83a5f3e140f36b195f8d7940c58d1de4ded71e7d38f8c4faf4b82e61392760 |
|
MD5 | 0fbfb0ed7079e254155de5e62fcced27 |
|
BLAKE2b-256 | 253342321fdb09e745e6cfc54f3f0fc1bd4467cbebcd9d4f42baf1607789c7c1 |