A client library for Sentoo.io
Project description
python-sentoo
A client library for Sentoo
Installation
You can install the library using pip:
pip install sentoo
Usage
To use the library, import it and create a client instance:
from sentoo import Sentoo
sentoo = Sentoo(token='your_token')
Documentation
The Sentoo client provides the following methods:
Creating a transaction
# Create a new transaction
response = sentoo.transaction_create(
sentoo_merchant="your_merchant_id",
sentoo_amount=1000, # Amount in cents
sentoo_description="Payment description",
sentoo_currency="ANG", # Supported: ANG, AWG, USD, EUR, XCD
sentoo_return_url="https://your-site.com/callback",
# Optional parameters
sentoo_customer="customer_id", # Optional customer identifier
sentoo_expires="2023-12-31T23:59:59", # Optional expiration date
sentoo_2nd_currency="USD", # Optional secondary currency
sentoo_2nd_amount="1200" # Optional secondary amount
)
Canceling a transaction
# Cancel an existing transaction
response = sentoo.transaction_cancel(
merchant_id="your_merchant_id",
transaction_id="transaction_id"
)
Checking transaction status
# Check the status of a transaction
response = sentoo.transaction_status(
merchant_id="your_merchant_id",
transaction_id="transaction_id"
)
Getting payment processors
# Get available payment processors for a transaction
response = sentoo.transaction_processors(
merchant_id="your_merchant_id",
transaction_id="transaction_id"
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sentoo-0.1.3.tar.gz
(18.0 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 sentoo-0.1.3.tar.gz.
File metadata
- Download URL: sentoo-0.1.3.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68060e782a663a06605f97d4053f03efe2c5694698526b7ee60f1fe95c19c0c
|
|
| MD5 |
f0864ad0bdedf16d5a53d033bb72551d
|
|
| BLAKE2b-256 |
d632c9cf084d6c51e5dddd82b47f2cd8a446736bb7cf77bb39be044037e74f65
|
File details
Details for the file sentoo-0.1.3-py3-none-any.whl.
File metadata
- Download URL: sentoo-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3d7d4b35b731ff6b1f6a7547d50a2f3164781d1775af1ed0f990f2d95f6e6ea
|
|
| MD5 |
51db8df3a9bef76bd44cee6c565d185a
|
|
| BLAKE2b-256 |
1ee7c6290dd8b17d3a0f811a22db41a85fae923e946c646522c26d2b7fa41248
|