Skip to main content

Adyen billing provider for the Swarmauri SDK.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_billing_adyen


Swarmauri Billing Adyen

The Swarmauri Billing Adyen package provides an Adyen-style billing provider that adheres to the Swarmauri billing interfaces. It mirrors the behaviours of Adyen's platform while returning Pydantic models for simple serialization and testing.

Features

  • ✅ Simulates all Swarmauri billing capabilities for an Adyen-like provider.
  • ✅ Generates deterministic webhook events and dispute lists for integration testing.
  • ✅ Makes it easy to evaluate tigrbl strategy coverage by mapping Capability values.
  • ✅ Ships as a ready-made baseline for extending into production-grade Adyen clients.

Installation

pip install swarmauri_billing_adyen
uv add swarmauri_billing_adyen

Usage

from swarmauri_billing_adyen import AdyenBillingProvider
from swarmauri_base.billing import CheckoutRequest, ProductSpec

provider = AdyenBillingProvider(api_key="ady_test_123")
product = provider.create_product(ProductSpec(payload={"name": "Enterprise"}), idempotency_key="prod-ady-1")
checkout = provider.create_checkout(product, CheckoutRequest(payload={"return_url": "https://merchant.example"}))

print(product.id, checkout.id)

Capability Mapping

All advertised capabilities come directly from swarmauri_core.billing.Capability and can be translated to tigrbl_billing requirements via capabilities_to_tigrbl.

Contributing

Community contributions are welcome! Share improvements that better reflect Adyen's API surface or add additional fixtures.

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

swarmauri_billing_adyen-0.9.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swarmauri_billing_adyen-0.9.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_billing_adyen-0.9.2.tar.gz.

File metadata

  • Download URL: swarmauri_billing_adyen-0.9.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for swarmauri_billing_adyen-0.9.2.tar.gz
Algorithm Hash digest
SHA256 43ea9949f94e0b003fbca890d810747d0e6bbec91c244b9eb4df2c581443be7b
MD5 dd86cf701bd6fc93a05877e8c0991f14
BLAKE2b-256 b189971db7c38781fa517dc0413faed68bbbe3a62a92c07bc36ee3c65ea2bd36

See more details on using hashes here.

File details

Details for the file swarmauri_billing_adyen-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_billing_adyen-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for swarmauri_billing_adyen-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f55759fcd47f30b6980d9bed9ee3e31ed7ff59f9fc155eb57dcf4e50ba7e0921
MD5 76ac29c7fa81f1b86b227f1b88e04568
BLAKE2b-256 2684450c745791b6a46f1747a0ec97409e6f45f03396ca978e49caf5d88a194c

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