Authorize.Net billing provider for the Swarmauri SDK.
Project description
Swarmauri Billing Authorize.Net
The Swarmauri Billing Authorize.Net package exposes a payments-first provider that mirrors the Authorize.Net API surface inside the Swarmauri SDK. Use it to validate card-not-present flows, refunds, and customer profile operations before you integrate the official SDK.
Features
- ✅ Focuses on the Authorize.Net core: transactions, refunds, customer profiles, and reporting.
- ✅ Emits deterministic payloads keyed by the provider namespace for straightforward assertions.
- ✅ Provides webhook parsing hooks for signature verification and fraud review flows.
- ✅ Designed as a drop-in replacement that can later call the Authorize.Net XML/JSON APIs.
Installation
Install from PyPI using either pip or uv:
pip install swarmauri_billing_authorize_net
uv add swarmauri_billing_authorize_net
Usage
from swarmauri_billing_authorize_net import AuthorizeNetBillingProvider
from swarmauri_base.billing import PaymentIntentRequest, RefundRequest
provider = AuthorizeNetBillingProvider(api_key="test-key")
payment_intent = provider.create_payment_intent(
PaymentIntentRequest(payload={"amount_minor": 4200, "currency": "USD", "confirm": True}),
)
refund = provider.create_refund(
payment_intent,
RefundRequest(payload={"amount_minor": 4200}),
)
print(payment_intent.status, refund["status"])
Capability Mapping
Capability metadata maps to tigrbl_billing identifiers via capabilities_to_tigrbl. That ensures your feature toggles and documentation stay aligned when swapping between this stub and a real Authorize.Net integration.
Contributing
If you connect the stub to the live Authorize.Net API, please share integration notes, test coverage, and examples in the README to help the community adopt the changes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters