Skip to main content

Python SDK for integrating with the Hatchup Payment Service.

Project description

Hatchup Payment Service Integration

Python SDK for integrating with the Hatchup Payment Service — an internal Stripe Connect gateway.

Status: 0.4.0 — sync + async client, webhooks, Django integration, and contract tripwire shipped. Stabilizing toward 1.0.

What this is

A framework-agnostic Python client for any Hatchup product that needs to take payments. The SDK proxies every Hatchup Payment Service feature behind typed resource classes, parses inbound webhooks, and ships an optional Django integration. Direct Stripe SDK access is intentionally out of scope — see docs/STRIPE_PASSTHROUGH.md.

Install

pip install hatchup-payment-service-integration
# with Django helpers
pip install "hatchup-payment-service-integration[django]"

Requires Python 3.12+.

30-second example

from pydantic import SecretStr
from hatchup_psip import PaymentServiceClient, PSIPConfig

with PaymentServiceClient(PSIPConfig(api_key=SecretStr("hp_..."))) as client:
    response = client.payments.create(
        price="9.99",
        order_id="ord_2026_05_001",
        success_webhook="https://app.example/psip/webhook/",
        failure_webhook="https://app.example/psip/webhook/",
    )
    print(response.payment_url)   # → redirect the buyer here

Documentation

Roadmap

  • M0 — toolchain bootstrap (0.1.0, shipped)
  • M1 — sync client + webhooks (0.2.0, shipped)
  • M2 — Django integration (0.3.0, shipped)
  • M3 — async client (0.4.0, shipped): AsyncPaymentServiceClient, paired async resources, AsyncWebhookDispatcher.
  • 1.0.0 (planned): stabilization after launchpad-backend's first integration cycle.

Development

# install dev deps
uv sync

# format + lint + types
just all

# run tests (skips `live` integration tests by default)
just test

# coverage report
just cov

# build wheel + sdist
just build

License

MIT — see LICENSE.

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

hatchup_payment_service_integration-1.1.5.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file hatchup_payment_service_integration-1.1.5.tar.gz.

File metadata

File hashes

Hashes for hatchup_payment_service_integration-1.1.5.tar.gz
Algorithm Hash digest
SHA256 ff9a0ed6631043d731ebe8e81a765b29504398fc76c27647217efb855dcbdfab
MD5 8af982873c9558ca077d2ebe7bcbc14d
BLAKE2b-256 9d9997d28b1d3221bd2c5d11f89ba734fc286e9c8e9eb9ed66f88a4541438521

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatchup_payment_service_integration-1.1.5.tar.gz:

Publisher: release.yml on hatchup-io/payment-service-integration

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hatchup_payment_service_integration-1.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for hatchup_payment_service_integration-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3c43addad687dd26a094d390e35e75a449181c4c074a1263094a2447ce861395
MD5 5ca18f27c76f7f85a1cf38e1727a86bc
BLAKE2b-256 4fb44356d438f3a6baa7bf37744a8f9241fc00dcbb3f22659e555f6bbcb1f8ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatchup_payment_service_integration-1.1.5-py3-none-any.whl:

Publisher: release.yml on hatchup-io/payment-service-integration

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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