Skip to main content

Stripe tasks for Python

Install render-lab-tasks-stripe. Import wrapped tasks and raw *_impl functions from render_lab_tasks_stripe.tasks, and register its app with your workflow. Pass Deps(stripe=...) to raw implementations for hermetic tests.

Environment

STRIPE_API_KEY is read lazily for REST operations. STRIPE_WEBHOOK_SECRET is used by verify_webhook when secret is omitted. Verification needs no API key. Requests make one attempt; durable task retries own retry policy.

The pack covers invoices, dunning, refunds, customers, subscriptions, payment intents, Checkout sessions, and webhook HMAC verification. Dunning reads then attempts payment once; its result uses the post-attempt invoice. Signature verification checks a 300-second age tolerance and accepts rotated v1 signatures. No live payment or refund has been performed for this port.

Webhook adapter

render_lab_tasks_stripe.webhooks.stripe_adapter(on_event, ...) returns a registration-free adapter for render_lab_triggers. The callback receives the verified event and returns {"task": "namespace.task", "args": [event]} or None. The signing credential STRIPE_WEBHOOK_SECRET is read inside verification unless provided explicitly. Importing this module does not register tasks. Signature checks use the raw body; live delivery remains in the testing backlog.

Installation

pip install render-lab-tasks-stripe==0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

render_lab_tasks_stripe-0.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

render_lab_tasks_stripe-0.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file render_lab_tasks_stripe-0.1.0.tar.gz.

File metadata

  • Download URL: render_lab_tasks_stripe-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for render_lab_tasks_stripe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 81c2753ac66389a1fe7bfd3512ad902190fa1faaaf49e43144fcfe9ba19ee088
MD5 71b8853b27525ae41986df70c00fb633
BLAKE2b-256 58f58d9286869ed65ce7ea34de463fe84663f1ccb7a21d094bd830b2bfa69fe2

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_stripe-0.1.0.tar.gz:

Publisher: publish.yml on render-lab/render-tasks-python

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

File details

Details for the file render_lab_tasks_stripe-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for render_lab_tasks_stripe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fc0d7cd8980aa849bdd7b22d49a769a1d441f3e810313921b37e50d676b9758
MD5 5d233f43fa031033e95f459830e3619d
BLAKE2b-256 85599220cba21de305cd9ac789aa356748e7119a91a14c930217ae859f1ffced

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_stripe-0.1.0-py3-none-any.whl:

Publisher: publish.yml on render-lab/render-tasks-python

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page