Metadata-Version: 2.4
Name: natcashify-flask
Version: 0.1.0
Summary: Flask integration for Natcashify.
Keywords: natcash,natcom,payments,haiti,sdk,typed
Author: Louis Midson LAJEANTY
Author-email: Louis Midson LAJEANTY <midsonlajeanty@proton.me>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Flask
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Office/Business :: Financial
Classifier: Typing :: Typed
Requires-Dist: natcashify-core==0.1.0
Requires-Dist: flask>=3.0
Requires-Python: >=3.12
Project-URL: Homepage, https://github.com/midsonlajeanty/natcashify
Project-URL: Documentation, https://midsonlajeanty.github.io/natcashify/
Project-URL: Issues, https://github.com/midsonlajeanty/natcashify/issues
Description-Content-Type: text/markdown

# natcashify-flask

Flask extension for Natcashify, configured from `NATCASH_*` keys in `app.config`.

```bash
pip install natcashify-flask
```

```python
from natcashify.core import Callback
from natcashify.flask import Natcash

natcash = Natcash(app)


@app.get("/natcash/callback")
@natcash.callback
def callback(callback: Callback):
    transaction = natcash.client.get_transaction(callback.order_number)
    ...
```

The decorator aborts with 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.
Documentation: <https://midsonlajeanty.github.io/natcashify/integrations/flask/>
