Pretix Integration
Configuring the Pretix Integration
- Create a pretix organizer and event for your StuStaPay event
- Create a pretix API key according to the pretix docs
- Fill out the pretix settings tab in the StuStaPay event settings.
- You can find the pretix ticket IDs by looking at the
Products
in your pretix event. Each product in the list will have it's ID visible as#<id>
- You can find the pretix ticket IDs by looking at the
Configuring Pretix Webhooks
To enable live order updates from Pretix instead of relying on periodic synchronization of the sold tickets we can configure a webhook in Pretix.
- Go to the
Pretix
tab in your event settings. - Click on
generate webhook url for live pretix updates
. - Copy the url and enter it as a webhook url in your Pretix instance according to the pretix docs
- Make sure to only select the
Order marked as paid
webhook type and only enable it for the one event in your organizer. - Whenever a ticket is paid in your Pretix instance this will notify the StuStaPay backend which can then synchronize the tickets more timely than would otherwise be possible.