An unofficial client library for Sentoo
Note: This library is not officially supported by Sentoo.
You can install the library using pip:
pip install sentooTo use the library, import it and create a client instance:
from sentoo import Sentoo
sentoo = Sentoo(secret='your_secret', merchant_id='your_merchant_id')The Sentoo client provides the following methods:
# 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
)# Cancel an existing transaction
response = sentoo.transaction_cancel(
transaction_id="transaction_id"
)# Check the status of a transaction
response = sentoo.transaction_status(
transaction_id="transaction_id"
)# Get available payment processors for a transaction
response = sentoo.transaction_processors(
transaction_id="transaction_id"
)