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', merchant_id='your_merchant_id')
Documentation
The Sentoo client provides the following methods:
Creating a transaction
# Create a new transaction
response = sentoo.transaction_create(
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(
transaction_id="transaction_id"
)
Checking transaction status
# Check the status of a transaction
response = sentoo.transaction_status(
transaction_id="transaction_id"
)
Getting payment processors
# Get available payment processors for a transaction
response = sentoo.transaction_processors(
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.5.tar.gz
(18.1 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.5.tar.gz.
File metadata
- Download URL: sentoo-0.1.5.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4b8c1b10bd0652271e7fa5f83a7a0a769571392e09ae5cb9c3c12623ccb30e6
|
|
| MD5 |
ed83a73751ab900058d9311b7e004d31
|
|
| BLAKE2b-256 |
579a46c1e55159a34ceed0a06ab30dcb6b384afa2fa4c0a364bc29dab042a3b2
|
File details
Details for the file sentoo-0.1.5-py3-none-any.whl.
File metadata
- Download URL: sentoo-0.1.5-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 |
93320fb466a0b298dae7df7a5b431e12c9903c921a8526ff0b02e0c5e1105906
|
|
| MD5 |
363a776576a382acf7b3153c8e3b2f94
|
|
| BLAKE2b-256 |
574f6cf04144f069e6da12019c152fd58e8df7c965c778fc6809d36b4cee411c
|