Skip to main content

Python SDK for 3X PAY API

Project description

three-x-pay-sdk

Python SDK for the 3X PAY API.

Installation

pip install three-x-pay-sdk

Quick start

from three_x_pay_sdk import ThreeXPayClient


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

Uploaded Source

Built Distribution

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

three_x_pay_sdk-1.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file three_x_pay_sdk-1.1.1.tar.gz.

File metadata

  • Download URL: three_x_pay_sdk-1.1.1.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/25.0.0

File hashes

Hashes for three_x_pay_sdk-1.1.1.tar.gz
Algorithm Hash digest
SHA256 bfebf81bf4bf2a8cbd14210235a4cb2533ddcfd4c03ef05ea11044c2ec9ce05d
MD5 0439154d93a9ad9ff387d87c0e00786c
BLAKE2b-256 f2728154a8f9290c040273bf7da0afb9e7e5bfbe841ee165da42805eb89c4f71

See more details on using hashes here.

File details

Details for the file three_x_pay_sdk-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: three_x_pay_sdk-1.1.1-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/25.0.0

File hashes

Hashes for three_x_pay_sdk-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78d9791387a8659597a8772a7f1e134f968b1a717960265a9ce1c2306bb3288d
MD5 c82fff1870dd1548d447bef310faa690
BLAKE2b-256 819355d84a2b89c61bdefd25482e7faf73c9160f8c4d82588849095220ea1f0c

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