flexcommerce-checkout
One atomic, idempotent checkout: re-prices the cart, validates delivery for the address, reserves stock, redeems the coupon, creates the order and starts the payment — safe against double submits and races.
Part of FlexCommerce — a complete, modular e-commerce and marketplace backend for Django + DRF, built for Nigeria and Africa. Every app is optional.
Features
- Idempotency keys: retries return the original order
expected_totalguard against silent price changes- Guest checkout, saved addresses, pickup stations, wallet payments
- Preview and shipping-options endpoints for checkout pages
- Works with only the cart and orders apps installed; uses shipping, inventory, discounts and payments when present
Install
pip install flexcommerce-checkout
INSTALLED_APPS = [..., "rest_framework", "flexcommerce_core", "flexcommerce_cart", "flexcommerce_orders", "flexcommerce_checkout"]
urlpatterns = [path("api/", include("flexcommerce_core.urls"))]
python manage.py migrate
Example: POST /api/checkout/
Documentation
Requires Python 3.10+, Django 4.2+, Django REST framework 3.14+. MIT licensed.
Metadata
Release files for flexcommerce-checkout 1.0.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 |
|---|---|---|---|---|
| flexcommerce_checkout-1.0.0.tar.gz | 12.7 kB | With provenance | Details for flexcommerce_checkout-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flexcommerce_checkout-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for flexcommerce_checkout-1.0.0-py3-none-any.whl |
Total release size: 26.0 kB
Release files / flexcommerce_checkout-1.0.0.tar.gz
| Download URL | flexcommerce_checkout-1.0.0.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b499f22c43b5a36beb217caad3716f35ae8e1729212f67963bae0ddf6f5a4560
|
|
BLAKE2b-256 checksum How to use checksums |
b8cd905ba69e8453b9d98255502251cebfc6516197d36b94039291c3665f65fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / flexcommerce_checkout-1.0.0-py3-none-any.whl
| Download URL | flexcommerce_checkout-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b8b3547171a89ad04f72121dd59b5a5c711b311157f3206d13cad805565152f
|
|
BLAKE2b-256 checksum How to use checksums |
80da371ca4b2f7acd33450ddb60df1289cbdb6cf87581d9032443f45c912660f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logSecurity for flexcommerce-checkout 1.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for flexcommerce_checkout-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logA 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.