Flaxon Stripe
flaxon-stripe exposes a configured Stripe SDK client at
app.state.stripe. It also provides a safe webhook signature-verification
helper. It does not create payment routes automatically: applications should
define their own authorization and business rules.
Install
pip install flaxon-stripe
Use
import os
from flaxon import Flaxon
from flaxon_stripe import StripePlugin
app = Flaxon("billing")
await app.plugins.load_plugin(
StripePlugin(
api_key=os.environ["STRIPE_SECRET_KEY"],
webhook_secret=os.environ["STRIPE_WEBHOOK_SECRET"],
)
)
@app.post("/stripe/webhook")
async def stripe_webhook(request):
event = app.state.stripe.verify_webhook(
await request.body(),
request.headers["stripe-signature"],
)
return {"received": event["id"]}
Use Stripe's official API version configuration, keep both secrets out of source control, and make webhook processing idempotent. A successful HTTP response must only be sent after the event has been durably recorded or safely queued.
Metadata
Release files for flaxon-stripe 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flaxon_stripe-0.1.0.tar.gz | 3.9 kB | Without provenance | Details for flaxon_stripe-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flaxon_stripe-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for flaxon_stripe-0.1.0-py3-none-any.whl |
Total release size: 7.9 kB
Release files / flaxon_stripe-0.1.0.tar.gz
| Download URL | flaxon_stripe-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3d5b25f8ac57d19775dc9407b27f3ca7b25bf1cec7c5a2249ceffbafa005c81
|
|
BLAKE2b-256 checksum How to use checksums |
6c4f96ea4fbe37f34ec187a2fa9a2c01b2f21d65b92529c6299079fb83a7a5b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / flaxon_stripe-0.1.0-py3-none-any.whl
| Download URL | flaxon_stripe-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
624d140af425f2c70fa5695f293ffd0bd3e47bcae530354934ffea6eb1a04c7b
|
|
BLAKE2b-256 checksum How to use checksums |
4f9fd6ec6a6163ea663aa08a0ea966531c9b663c0ae6f394156ac134c163d070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Security for flaxon-stripe 0.1.0
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.