Skip to content

rhymiz/python-sentoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-sentoo

An unofficial client library for Sentoo

Note: This library is not officially supported by 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"
)

About

An unofficial client library for Sentoo

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages