Python SDK for 3X PAY API
Project description
three-x-pay-sdk
Python SDK for the 3X PAY API.
- API reference: OpenAPI spec
Installation
pip install three-x-pay-sdk
Quick start (sync)
from three_x_pay_sdk import ThreeXPayClient, CreatePayInRequest
client = ThreeXPayClient(api_key="YOUR_API_KEY")
# Health check
await client.ping()
# Create payin
created = await client.create_payin(
amount=10.5,
currency="USDT",
merchant_order_id="order-123",
merchant_callback_url="https://example.com/webhook",
merchant_return_url="https://example.com/return",
is_test=True,
)
print(created.payment_url)
# Get payin
info = await client.get_payin(created.id)
print(info.status)
Webhook signature
from three_x_pay_sdk import verify_signature
is_valid = verify_signature(body_bytes, secret_key, signature_from_header)
License
MIT
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
three_x_pay_sdk-1.0.0.tar.gz
(4.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 three_x_pay_sdk-1.0.0.tar.gz.
File metadata
- Download URL: three_x_pay_sdk-1.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.0 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
065fd05a3e92d31d15b2917a9b8547933835678fb806bf665fc35527dd2a93d8
|
|
| MD5 |
444c38cce4c56ae708f8bc9445027d4f
|
|
| BLAKE2b-256 |
47a33ce586e6bcf285aa425fe578e5fbc27d07a8bb8c0185420d518a0b7d910b
|
File details
Details for the file three_x_pay_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: three_x_pay_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.0 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0db62b09b0501088fed090cb5afc97f7ab2a94600b09a4b453f6a9fa8b3eb81
|
|
| MD5 |
e01524fc80bb1cb6a9eff9c6fff9764a
|
|
| BLAKE2b-256 |
0782fc3231a8827643ab27053aa045a57ee8d8de96a0894a75d3495584515540
|