Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

eldercrank-stripe-flask

Flask integration for the eldercrank-stripe library, providing easy webhook handling for Stripe events in Flask applications.

Features

  • Simple Blueprint Creation: One function call to create a webhook blueprint
  • Automatic Signature Verification: Handled by the underlying StripeHandler
  • Customizable URL Prefix: Configure your webhook endpoint prefix
  • Proper Error Handling: Returns appropriate HTTP status codes for Stripe

Installation

pip install eldercrank-stripe-flask

Quick Start

from flask import Flask
from eldercrank.stripe.core import StripeHandler
from eldercrank.stripe.flask import create_stripe_blueprint

# Create your Flask app
app = Flask(__name__)

# Create your Stripe handler
handler = StripeHandler(
    api_key="sk_test_...",
    webhook_secret="whsec_..."
)

# Register the Stripe webhook blueprint
app.register_blueprint(create_stripe_blueprint(handler))

# Register event handlers
def handle_payment_success(event_data):
    print(f"Payment successful!")

handler.add_event_handler("payment_intent.succeeded", handle_payment_success)

Custom URL Prefix

# Use a custom URL prefix
app.register_blueprint(
    create_stripe_blueprint(handler, url_prefix="/payments/stripe")
)

This will register the webhook endpoint at /payments/stripe/webhook.

License

MIT

Metadata

Release files for eldercrank-stripe-flask 0.1.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eldercrank-stripe-flask 0.1.0b2
File Size Uploaded Provenance
eldercrank_stripe_flask-0.1.0b2.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for eldercrank-stripe-flask 0.1.0b2
File Interpreter ABI Platform
eldercrank_stripe_flask-0.1.0b2-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / eldercrank_stripe_flask-0.1.0b2.tar.gz

Download URL eldercrank_stripe_flask-0.1.0b2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c050748de9f55c632d32dd06c73786ad11573652182b9b7ebd5484cbd0ed0707
BLAKE2b-256 checksum
How to use checksums
6a53a01827fa75fb078080ad4fd68b2a15373c24328e30a374eab4c42e62e310
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.15

Release files / eldercrank_stripe_flask-0.1.0b2-py3-none-any.whl

Download URL eldercrank_stripe_flask-0.1.0b2-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a6e002bb0016028d100accec8163b7db2fc07bbd111305cd8696550a490277f
BLAKE2b-256 checksum
How to use checksums
8c7d0520f76dbc897771afbe0fd21a6456c5b345394801bc05df156b01867da8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.15

Security for eldercrank-stripe-flask 0.1.0b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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