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
docs/quickstart.md— install, construct a client, call every resource, error hierarchy.docs/webhooks.md— read before deploying. Webhooks are not signed today; the SDK's verify-by-default dispatcher is the only forgery defence.docs/django.md—PSIPWebhookView,settings.PSIP, three wiring patterns.docs/STRIPE_PASSTHROUGH.md— why the SDK does not wrap the Stripe SDK directly.CHANGELOG.md— release notes.
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
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
File details
Details for the file hatchup_payment_service_integration-1.1.5.tar.gz.
File metadata
- Download URL: hatchup_payment_service_integration-1.1.5.tar.gz
- Upload date:
- Size: 41.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff9a0ed6631043d731ebe8e81a765b29504398fc76c27647217efb855dcbdfab
|
|
| MD5 |
8af982873c9558ca077d2ebe7bcbc14d
|
|
| BLAKE2b-256 |
9d9997d28b1d3221bd2c5d11f89ba734fc286e9c8e9eb9ed66f88a4541438521
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hatchup_payment_service_integration-1.1.5.tar.gz -
Subject digest:
ff9a0ed6631043d731ebe8e81a765b29504398fc76c27647217efb855dcbdfab - Sigstore transparency entry: 1735292111
- Sigstore integration time:
-
Permalink:
hatchup-io/payment-service-integration@107bdf699f5f0a34842c4d19d05e637a3c765ff0 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/hatchup-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@107bdf699f5f0a34842c4d19d05e637a3c765ff0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hatchup_payment_service_integration-1.1.5-py3-none-any.whl.
File metadata
- Download URL: hatchup_payment_service_integration-1.1.5-py3-none-any.whl
- Upload date:
- Size: 55.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c43addad687dd26a094d390e35e75a449181c4c074a1263094a2447ce861395
|
|
| MD5 |
5ca18f27c76f7f85a1cf38e1727a86bc
|
|
| BLAKE2b-256 |
4fb44356d438f3a6baa7bf37744a8f9241fc00dcbb3f22659e555f6bbcb1f8ae
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hatchup_payment_service_integration-1.1.5-py3-none-any.whl -
Subject digest:
3c43addad687dd26a094d390e35e75a449181c4c074a1263094a2447ce861395 - Sigstore transparency entry: 1735292218
- Sigstore integration time:
-
Permalink:
hatchup-io/payment-service-integration@107bdf699f5f0a34842c4d19d05e637a3c765ff0 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/hatchup-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@107bdf699f5f0a34842c4d19d05e637a3c765ff0 -
Trigger Event:
push
-
Statement type: