natcashify-fastapi
FastAPI integration for Natcashify: client dependencies and a verified callback dependency.
pip install natcashify-fastapi
from natcashify.fastapi import NatcashCallback, get_async_natcash_client
@app.get("/natcash/callback")
async def callback(callback: NatcashCallback, client: Client) -> dict[str, str]:
transaction = await client.get_transaction(callback.order_number)
...
NatcashCallback answers 400 on an invalid signature. Confirm the transaction before fulfilling,
and skip an unknown or already paid order: the browser replays the callback on refresh.
The clients are built from the NATCASH_* environment variables.
Documentation: https://midsonlajeanty.github.io/natcashify/integrations/fastapi/
Metadata
Release files for natcashify-fastapi 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 | |
|---|---|---|---|---|
| natcashify_fastapi-0.1.0.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| natcashify_fastapi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / natcashify_fastapi-0.1.0.tar.gz
| Download URL | natcashify_fastapi-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51fc0762f68e8f6dcb0081189c02bc3903a083de5beac258e78e10434b53f8af
|
|
BLAKE2b-256 checksum How to use checksums |
d6beee3b52686ac7019515587da4883e2054e3b83ae36c5b0872ea326598f2b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / natcashify_fastapi-0.1.0-py3-none-any.whl
| Download URL | natcashify_fastapi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c747d39bf69ccecb68d3de114a2194411282f9c7f1acc7a89c5fa700f0d76b4
|
|
BLAKE2b-256 checksum How to use checksums |
6758511e82ec6188dec044fa78c7c0cb76a80afdca6402de0274c1bfce962409
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for natcashify-fastapi 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.