Besides, the pretix API does now offers the functionality of this plugin as a native API call. See the pretix API documentation for details.
This is a plugin for pretix.
Upon installation, it will offer a new REST API endpoint at /api/v1/organizers/<organizer>/orders/<orderid>/cashpoint
, that will allow you to set the status of an order manually to "Paid" - just like if you would have pushed to "Mark as paid" in the pretix backend.
This plugin leverages the same API-tokens that are available to the current read-only API as outlined [here](https://docs.pretix.eu/en/latest/api/fundamentals.html#obtaining-an-api-token)
As this plugin and operation is more of a doohickey and not thoroughly tested, you might want to limit the activiation of the plugin to when you actually need it. As an additional precaution, you might want to limit access to the API, too.
This plugin is supposed to interact with the de.pccoholic.pretix.cashpoint android app, which facilitates marking orders as paid from mobile devices.
- Activate - if applicable your pretix venv
pip install pretix-cashpoint
- python3 -m pretix migrate
- python3 -m pretix rebuild
- Restart your pretix processes:
systemctl restart pretix-web pretix-worker
Follow the instructions of the development setup. But instead of python setup.py develop
in the plugin directory, run pip install .
instead. python setup.py setup
will not work.
- Make sure that you have a working pretix development setup.
- Clone this repository, eg to
local/pretix-cashpoint
. - Activate the virtual environment you use for pretix development.
- Execute
python setup.py develop
within this directory to register this application with pretix's plugin registry. - Execute
make
within this directory to compile translations. - Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in the 'plugins' tab in the settings.
Copyright 2017 Martin Gross
Released under the terms of the Apache License 2.0