No project description provided
Project description
Package for an ITPay API
About
Just a small but powerful package-wrapper for an ITPay API
Usage
ITPaySDK can help you to create and retrieve payment info, get information about your account's balance and toggle bill activity
Documentation
Official docs can be found here on the APIs webpage
Installation
pip install itpaysdk
Requirements
- Python 3.11
- aiohttp
Features
- Asynchronous
- LightWeight
Basic example
from ITPaySDK import ITPayAPI, Currency, PaymentType
client = ITPayAPI(
shop_id=YOUR_SHOP_ID,
token=YOUR_TOKEN,
)
# Get balance
await client.balance()
# Create bill
response = await client.create_bill(
amount=100.05,
order_id=123123,
description="Lorem ipsum dollar",
type=PaymentType.one_time,
currency_in=Currency.RUB,
payer_pays_commission=True
)
# Check bill status and related info
response = await client.bill_status(
bill_id=123123
)
# Deactivate the bill
response = await client.toggle_activity(
bill_id=123123,
active=False
)
GitHub
Repo of the project
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
itpaysdk-0.2.1.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file itpaysdk-0.2.1.tar.gz.
File metadata
- Download URL: itpaysdk-0.2.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82ae8856889e796a0550f28fc01c0a8454e5160c865c8796154554b6375d3a41
|
|
| MD5 |
81669dd71bdb553ce1e9fff4571679e7
|
|
| BLAKE2b-256 |
9a9b95f5fa9b2821f409b4aa22fa1043eb47d9690d6eb1a43b51460be91bca99
|
File details
Details for the file itpaysdk-0.2.1-py3-none-any.whl.
File metadata
- Download URL: itpaysdk-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dd153747c6c99047a8fd2985f1585433bae49a54fa59dee3e0d111d6093092a
|
|
| MD5 |
0304a4737559c10f090b58fb9c928e2c
|
|
| BLAKE2b-256 |
85ac2a00ce47c6a3780814d5ed5ed13f5b65c17aaff46752fa3fe6ea558da6eb
|