Skip to main content

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.4.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sentoo-0.1.4-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file sentoo-0.1.4.tar.gz.

File metadata

  • Download URL: sentoo-0.1.4.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.3

File hashes

Hashes for sentoo-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c50fb88905bc176f274b649414ec0cf82e242237d6cd6a82d8da65c7b1aa43aa
MD5 0955ad7d04fbfeb3bab7d93308e303a4
BLAKE2b-256 7027348109d18e514651b7c539e608da7b8e32ba7711a401c4eab03f3679ce64

See more details on using hashes here.

File details

Details for the file sentoo-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sentoo-0.1.4-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

Hashes for sentoo-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8b2e9982a7a08a099fc6989b6c4323e9b823f812f700bb8adb4515ea10f2d29b
MD5 a44a109630957d5dc28afc1633506392
BLAKE2b-256 adf785e5d8019f5cd38a4c994f8d0b0ebcb8f1b58a057356ad4f1f404e0aba56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page