three-x-pay-sdk


Namethree-x-pay-sdk JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/enveloss/3x-pay-sdk
SummaryPython SDK for 3X PAY API
upload_time2025-09-07 09:44:26
maintainerNone
docs_urlNone
authorNone
requires_python<4.0,>=3.8
licenseMIT
keywords payments crypto sdk api 3xpay
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            three-x-pay-sdk
================

Python SDK for the 3X PAY API.

- API reference: [OpenAPI spec](https://app.3xpay.org/api/openapi.json)

Installation
------------

```bash
pip install three-x-pay-sdk
```

Quick start
-----------

```python
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
-----------------

```python
from three_x_pay_sdk import verify_signature

is_valid = verify_signature(body_bytes, secret_key, signature_from_header)
```

License
-------

MIT

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/enveloss/3x-pay-sdk",
    "name": "three-x-pay-sdk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": "payments, crypto, sdk, api, 3xpay",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/39/06/858bb6660013834426a15b9db92554073cc6c6189a41d3700ebbd0449ae7/three_x_pay_sdk-1.1.0.tar.gz",
    "platform": null,
    "description": "three-x-pay-sdk\n================\n\nPython SDK for the 3X PAY API.\n\n- API reference: [OpenAPI spec](https://app.3xpay.org/api/openapi.json)\n\nInstallation\n------------\n\n```bash\npip install three-x-pay-sdk\n```\n\nQuick start\n-----------\n\n```python\nfrom three_x_pay_sdk import ThreeXPayClient\n\n\nclient = ThreeXPayClient(api_key=\"YOUR_API_KEY\")\n\n# Health check\nawait client.ping()\n\n# Create payin\ncreated = await client.create_payin(\n    amount=10.5,\n    currency=\"USDT\",\n    merchant_order_id=\"order-123\",\n    merchant_callback_url=\"https://example.com/webhook\",\n    merchant_return_url=\"https://example.com/return\",\n    is_test=True,\n)\nprint(created.payment_url)\n\n# Get payin\ninfo = await client.get_payin(created.id)\nprint(info.status)\n```\n\nWebhook signature\n-----------------\n\n```python\nfrom three_x_pay_sdk import verify_signature\n\nis_valid = verify_signature(body_bytes, secret_key, signature_from_header)\n```\n\nLicense\n-------\n\nMIT\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python SDK for 3X PAY API",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/enveloss/3x-pay-sdk",
        "Repository": "https://github.com/enveloss/3x-pay-sdk"
    },
    "split_keywords": [
        "payments",
        " crypto",
        " sdk",
        " api",
        " 3xpay"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a520bb9164935d14e1ad7d034b9f4ac38767fac382c0743b1b5cfa2821c17165",
                "md5": "95fe9f891bc7f2a2580e44824c8fe719",
                "sha256": "91f0e2adf5b6f29bdf87b5075b865f62d1124410ae49823779a004ab593bb6ad"
            },
            "downloads": -1,
            "filename": "three_x_pay_sdk-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "95fe9f891bc7f2a2580e44824c8fe719",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 6200,
            "upload_time": "2025-09-07T09:44:24",
            "upload_time_iso_8601": "2025-09-07T09:44:24.973190Z",
            "url": "https://files.pythonhosted.org/packages/a5/20/bb9164935d14e1ad7d034b9f4ac38767fac382c0743b1b5cfa2821c17165/three_x_pay_sdk-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3906858bb6660013834426a15b9db92554073cc6c6189a41d3700ebbd0449ae7",
                "md5": "b59dd93feefb37cb35bef9fff6e4f004",
                "sha256": "86eff59d23f5556960c4eb73b0534578063f36ab305ff437a268663d4587cbeb"
            },
            "downloads": -1,
            "filename": "three_x_pay_sdk-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b59dd93feefb37cb35bef9fff6e4f004",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 4835,
            "upload_time": "2025-09-07T09:44:26",
            "upload_time_iso_8601": "2025-09-07T09:44:26.141942Z",
            "url": "https://files.pythonhosted.org/packages/39/06/858bb6660013834426a15b9db92554073cc6c6189a41d3700ebbd0449ae7/three_x_pay_sdk-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-07 09:44:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "enveloss",
    "github_project": "3x-pay-sdk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "three-x-pay-sdk"
}
        
Elapsed time: 1.12506s