Swarmauri Billing Razorpay
The Swarmauri Billing Razorpay package integrates the Razorpay Python SDK into the Swarmauri billing ecosystem. It offers high-fidelity wrappers for Razorpay items, payment links, orders, subscriptions, invoices, and webhook verification routines.
Features
- ✅ Creates products and prices using Razorpay items and catalog metadata.
- ✅ Generates payment links for hosted checkout flows.
- ✅ Manages orders for online payments, capture, and cancellation workflows.
- ✅ Handles Razorpay subscriptions and invoice issuance APIs.
- ✅ Supports Route marketplace transfers and secure webhook signature validation.
Installation
pip install swarmauri_billing_razorpay
uv add swarmauri_billing_razorpay
Usage
from swarmauri_billing_razorpay import RazorpayBillingProvider
from swarmauri_base.billing import CheckoutRequest, PriceSpec, ProductSpec
provider = RazorpayBillingProvider(
key_id="rzp_test_xxxxx",
key_secret="test_secret",
)
product = provider.create_product(
ProductSpec(name="Analytics Plan", description="Advanced dashboards"),
idempotency_key="razorpay-prod-001",
)
price = provider.create_price(
product,
PriceSpec(currency="INR", unit_amount_minor=49900, nickname="Quarterly"),
idempotency_key="razorpay-price-001",
)
checkout = provider.create_checkout(
price,
CheckoutRequest(
quantity=1,
success_url="https://merchant.example/razorpay/callback",
idempotency_key="razorpay-checkout-001",
),
)
print(product.id, price.id, checkout.url)
Capability Mapping
Razorpay operations surfaced by this provider emit Capability enums that can be translated to tigrbl billing capabilities using capabilities_to_tigrbl.
Contributing
Bug fixes and new Razorpay API coverage are very welcome. Please share reproducible examples when reporting issues so we can iterate quickly.
Metadata
Release files for swarmauri_billing_razorpay 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swarmauri_billing_razorpay-0.9.2.tar.gz | 9.1 kB | Without provenance | Details for swarmauri_billing_razorpay-0.9.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swarmauri_billing_razorpay-0.9.2-py3-none-any.whl | Python 3 | none | any | Details for swarmauri_billing_razorpay-0.9.2-py3-none-any.whl |
Total release size: 19.2 kB
Release files / swarmauri_billing_razorpay-0.9.2.tar.gz
| Download URL | swarmauri_billing_razorpay-0.9.2.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21d1f0ab7a58df4c95991f18de74405833aab11a312f16986bdefcbc40a1fbb6
|
|
BLAKE2b-256 checksum How to use checksums |
32f639ac6f3775e691af6d2958e5c1dda881fd63f2c1c1695fa0e98276ed3ce5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / swarmauri_billing_razorpay-0.9.2-py3-none-any.whl
| Download URL | swarmauri_billing_razorpay-0.9.2-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d65b1b48fd1cec4ece4e5d1ecc1e697c59c240404992dc4e294586d9e9faf856
|
|
BLAKE2b-256 checksum How to use checksums |
8d5cf7c94887937a409b811f783eefee3a5bec0e7a277c50e19b675a22fb2a7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for swarmauri_billing_razorpay 0.9.2
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.