Skip to main content

SendMate Python SDK for payment processing and wallet management

Project description

SendMate Python SDK

A Python SDK for the SendMate payment processing and wallet management API.

Installation

pip install sendmate-python

Usage

from sendmate import SendMate, Currency, PaymentType

# Initialize the client
client = SendMate(api_key="your_api_key")  # Or set SENDMATE_API_KEY environment variable

# Create a checkout session
checkout = client.create_checkout(
    amount=100.00,
    currency=Currency.USD,
    payment_type=PaymentType.CARD,
    customer_email="customer@example.com",
    customer_name="John Doe"
)

# Get checkout URL
print(f"Checkout URL: {checkout['checkout_url']}")

# Check transaction status
status = client.get_transaction_status("transaction_id")
print(f"Transaction status: {status}")

Features

  • Payment processing
  • Checkout session management
  • Transaction status tracking
  • Type-safe API with Pydantic models
  • Environment-based configuration

Development

  1. Clone the repository
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Run tests:
    pytest
    

Publishing to PyPI

  1. Build the package:

    python setup.py sdist bdist_wheel
    
  2. Upload to PyPI:

    twine upload dist/*
    

License

MIT License

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

sendmate_python-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

sendmate_python-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file sendmate_python-0.1.0.tar.gz.

File metadata

  • Download URL: sendmate_python-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for sendmate_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5695c779b515a441e271282839d8a58f4eaf7cb65463d523478b9982c1dc6d71
MD5 97693c90e0e6b1fa946f46ae1d8ef12a
BLAKE2b-256 d65d27495f71a83e35a543b7bdf53b3ab4416db177f907836f813fb91c2698fb

See more details on using hashes here.

File details

Details for the file sendmate_python-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sendmate_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f9ab79c9dfeb30837900ca180eda8ee2a29768eeb2bb00f28d0096f80c5467a
MD5 93bf63cdb71561cf778aab98b0ba3085
BLAKE2b-256 e6d025dca471fa372facbe3f3fff6e85953bb3daabb871ec18aed19bbddefd4d

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