Metadata-Version: 2.4
Name: pretix-payment-sumup
Version: 0.9.0
Summary: pretix payment provider for SumUp Hosted Checkout
Author-email: Stefan Bethke <stb@lassitu.de>
Maintainer-email: Stefan Bethke <stb@lassitu.de>
License-Expression: MIT
Project-URL: homepage, https://stblassitude.github.io/pretix-plugin-payment-sumup/
Project-URL: repository, https://github.com/stblassitude/pretix-plugin-payment-sumup
Project-URL: documentation, https://stblassitude.github.io/pretix-plugin-payment-sumup/
Project-URL: issues, https://github.com/stblassitude/pretix-plugin-payment-sumup/issues
Keywords: pretix,sumup,payment
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Other Audience
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-django; extra == "dev"
Requires-Dist: responses; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: isort; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs<2,>=1.6; extra == "docs"
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
Dynamic: license-file

# pretix SumUp Hosted Checkout

A [pretix](https://pretix.eu) payment provider plugin that lets customers pay through
[SumUp Hosted Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout):
card, Apple Pay and Google Pay on a payment page hosted by SumUp.

- Payments are confirmed through the return redirect, SumUp webhooks **and** the pretix cronjob,
  so customers who close the browser after paying are covered too.
- Full and partial refunds from the pretix backend.
- Separate SumUp sandbox account for orders placed in pretix test mode.

**Documentation:** <https://stblassitude.github.io/pretix-plugin-payment-sumup/>

## Installation

```bash
pip install pretix-payment-sumup
```

Note: the PyPI package `pretix-sumup` is a different project.

Then enable **SumUp Hosted Checkout** in your event's plugin settings and enter your SumUp API key
and merchant code under **Settings → Payment**. See the documentation for the
[SumUp account setup](https://stblassitude.github.io/pretix-plugin-payment-sumup/sumup-setup/)
and [notes and gotchas](https://stblassitude.github.io/pretix-plugin-payment-sumup/gotchas/).

## Trying it out

```bash
cd sandbox
cp .env.example .env
docker compose up --build -d
# http://localhost:8345/control/  admin@localhost / admin
```

See [Docker sandbox](https://stblassitude.github.io/pretix-plugin-payment-sumup/sandbox/).

## Development

```bash
python3 -m venv .venv && . .venv/bin/activate
pip install pretix -e '.[dev]'
pytest
```

## License

MIT License, see [LICENSE](LICENSE).
