Metadata-Version: 2.4
Name: stapel-billing
Version: 0.4.12
Summary: Billing and payments Django app for the Stapel framework
License: MIT
Project-URL: Homepage, https://github.com/usestapel/stapel-billing
Project-URL: Repository, https://github.com/usestapel/stapel-billing
Project-URL: Documentation, https://github.com/usestapel/stapel-billing#readme
Project-URL: Changelog, https://github.com/usestapel/stapel-billing/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/usestapel/stapel-billing/issues
Keywords: django,stapel,billing,payments,stripe
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: stapel-core<0.12,>=0.10
Provides-Extra: stripe
Requires-Dist: stripe<12,>=8.0; extra == "stripe"
Provides-Extra: all
Requires-Dist: stapel-billing[stripe]; extra == "all"
Dynamic: license-file

# stapel-billing

[![CI](https://github.com/usestapel/stapel-billing/actions/workflows/ci.yml/badge.svg)](https://github.com/usestapel/stapel-billing/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/usestapel/stapel-billing/graph/badge.svg)](https://codecov.io/gh/usestapel/stapel-billing)
[![PyPI](https://img.shields.io/pypi/v/stapel-billing.svg)](https://pypi.org/project/stapel-billing/)

> Billing — Stripe subscriptions, credit wallets, transaction history

Part of the [Stapel framework](https://github.com/usestapel) — composable Django apps for building production-grade platforms.

**Error reference:** [Errors (EN)](docs/errors.en.md) · [Ошибки (RU)](docs/errors.ru.md)

## Installation

```bash
pip install stapel-billing
```

## Quick start

```python
# settings.py
INSTALLED_APPS = [
    ...
    'stapel_billing',
]
```

## Bus events

### Emits
| `payment.completed` | [schema](schemas/emits/payment.completed.json) | A payment transaction completed successfully. |
| `subscription.changed` | [schema](schemas/emits/subscription.changed.json) | User subscription plan or status changed. |

### Consumes
| `user.deleted` | [schema](schemas/consumes/user.deleted.json) |
| `user.deletion_initiated` | [schema](schemas/consumes/user.deletion_initiated.json) |

## License

MIT — see [LICENSE](LICENSE)
