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
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Run tests:
pytest
Publishing to PyPI
-
Build the package:
python setup.py sdist bdist_wheel
-
Upload to PyPI:
twine upload dist/*
License
MIT License
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5695c779b515a441e271282839d8a58f4eaf7cb65463d523478b9982c1dc6d71
|
|
| MD5 |
97693c90e0e6b1fa946f46ae1d8ef12a
|
|
| BLAKE2b-256 |
d65d27495f71a83e35a543b7bdf53b3ab4416db177f907836f813fb91c2698fb
|
File details
Details for the file sendmate_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sendmate_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f9ab79c9dfeb30837900ca180eda8ee2a29768eeb2bb00f28d0096f80c5467a
|
|
| MD5 |
93bf63cdb71561cf778aab98b0ba3085
|
|
| BLAKE2b-256 |
e6d025dca471fa372facbe3f3fff6e85953bb3daabb871ec18aed19bbddefd4d
|