Skip to main content

pyrx-payment-sdk

Python SDK for the PYRX Payment Service. Provides an async client for creating payments, managing subscriptions, processing refunds, and verifying webhooks.

Installation

pip install pyrx-payment-sdk

Quick Start

import asyncio
from decimal import Decimal
from pyrx_payment_sdk import PaymentClient

async def main():
    client = PaymentClient(
        api_key="pyrx_lv_sk_your_key_here",
        base_url="https://pay.pyrx.ai",
    )

    # Create a payment
    payment = await client.payments.create(
        amount=Decimal("29.99"),
        currency="USD",
        payment_method_type="card",
        provider="stripe",
    )
    print(f"Checkout URL: {payment.checkout_url}")

    # List subscriptions
    subs = await client.subscriptions.list(status="active")

    # Verify a webhook
    is_valid = client.webhooks.verify(
        payload=request_body,
        signature=request.headers["X-Pyrx-Signature"],
        secret="your_webhook_secret",
    )

    await client.close()

asyncio.run(main())

Supported Operations

  • Payments: create, get, capture, cancel, list
  • Subscriptions: create, get, update, cancel, pause, resume, list
  • Refunds: create, get
  • Webhooks: verify signature, parse event

Metadata

Release files for pyrx-payment-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrx-payment-sdk 0.1.0
File Size Uploaded Provenance
pyrx_payment_sdk-0.1.0.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrx-payment-sdk 0.1.0
File Interpreter ABI Platform
pyrx_payment_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / pyrx_payment_sdk-0.1.0.tar.gz

Download URL pyrx_payment_sdk-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f2dc9fa5a75619cb2045abd3954b8d7e7784017be39855d37b76f9ec12c772cd
BLAKE2b-256 checksum
How to use checksums
e42b5d67e6a46ce517a739ffd07de22a0ed23947772782a8f05d112373d372e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / pyrx_payment_sdk-0.1.0-py3-none-any.whl

Download URL pyrx_payment_sdk-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
950e17b0248b10031093365331e83c89338529761908ccfe5bc4fafcebda10d4
BLAKE2b-256 checksum
How to use checksums
0695b33db6ea0c3badd9357c78891bf422949ab3b2157ba56c3aee3bccd33830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for pyrx-payment-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page