Skip to main content

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(secret='your_secret', 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"
)

Metadata

Release files for sentoo 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentoo 0.2.0
File Size Uploaded
sentoo-0.2.0.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sentoo 0.2.0
File Interpreter ABI Platform
sentoo-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / sentoo-0.2.0.tar.gz

Download URL sentoo-0.2.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
21c4cedd290431bc7ae7a1cfbca7467e4a89c853eba6130f68fcd1df153116d3
BLAKE2b-256 checksum
How to use checksums
4c5800360df618c4358e06e5800a4996d7da85892b0ff18f600ecc925790e949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.5

Release files / sentoo-0.2.0-py3-none-any.whl

Download URL sentoo-0.2.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
244ad9157c5753caf8a9ea37cc2391630cd103177c033371e27085276490aa10
BLAKE2b-256 checksum
How to use checksums
40746795887ed50b9d183d9f4efd8823f2f9e778e444e5201027e49ffbf2cd21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.5

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page