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.0.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.0.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: three_x_pay_sdk-1.0.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/24.3.0

File hashes

Hashes for three_x_pay_sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a6eb6118ad7be110cb739fc106ce9317798f8feb0f468633e6f42ebb3c986f2e
MD5 9975b68a3ede90e3cfe15c7141731b77
BLAKE2b-256 fb689203fb8fbe2283c8d13063c0ccbe31cf8f0909c5da5b30ac054176889962

See more details on using hashes here.

File details

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

File metadata

  • Download URL: three_x_pay_sdk-1.0.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/24.3.0

File hashes

Hashes for three_x_pay_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bf4f344e9cba000f96aa49e14fff52fb5f524bc5a297ed48afef2bd9b848bd3
MD5 84bd5082bf2a924a24caafa47d5e1a0d
BLAKE2b-256 6f859924f0cc6ed3b2ad2a4b3f3f404fb195ce7f536104fbe89ec1db4d7bdd0d

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