Skip to main content
PyPI version Supported Python versions License CI status DeepWiki

This is a plugin for pretix that integrates euPago, a Portuguese payment gateway, to accept Multibanco references and MB WAY push payments.

Installation

Install the plugin into the same Python environment as your pretix instance:

pip install pretix-eupago

Then restart your pretix server. The plugin registers itself with pretix’s plugin registry automatically via a setuptools entry point — no changes to INSTALLED_APPS are needed. You can now enable it for an event under the “plugins” tab in that event’s settings.

Development setup

  1. Make sure that you have a working pretix development setup.

  2. Clone this repository.

  3. Activate the virtual environment you use for pretix development.

  4. Execute pip install -e . (or, if you use uv, uv sync --extra test) within this directory to register this application with pretix’s plugin registry.

  5. Execute make within this directory to compile translations.

  6. 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.

Run make test to run the test suite and make lint to run ruff.

Configuration

Enable the plugin for an event, then configure the shared euPago settings under Settings → Payment → euPago:

  • API Key — your euPago API key, found in Backoffice → Channels → Channel Listing.

  • Sandbox / Test mode — use the euPago sandbox environment for testing.

  • Webhook signature secret — optional but strongly recommended. The encryption key generated for this channel’s webhook in Backoffice → Channels → Channel Listing → “Receive notification for a URL”. When set, incoming webhook v2.0 (POST) notifications are only accepted if their signature matches; without it, they’re accepted based on a weaker cross-check only.

These are shared by every euPago payment method, so you only set them once. Then enable and configure each payment method you want individually under Settings → Payment:

  • Multibanco — has no method-specific settings besides the reference validity:

    • Multibanco reference validity (days) — how many days a generated Multibanco reference stays valid.

  • MB WAY — no method-specific settings.

Finally, configure a single webhook URL in euPago’s Backoffice (Channels → Channel Listing → “Receive notification for a URL”), for every channel you use:

https://<your-pretix-domain>/eupago/webhook/

This URL is global (not event-scoped) and handles both euPago webhook formats (v1.0 GET and v2.0 POST). v1.0 notifications are verified against your configured API key; v2.0 notifications are verified against your configured webhook signature secret, if set. The optional “encrypt” webhook setting in Backoffice is also supported (the payload is decrypted using that same secret).

License

Copyright 2026 Afonso Santos

Released under the terms of the Apache License 2.0, see the LICENSE file for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pretix_eupago-1.2.1.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pretix_eupago-1.2.1-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file pretix_eupago-1.2.1.tar.gz.

File metadata

  • Download URL: pretix_eupago-1.2.1.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pretix_eupago-1.2.1.tar.gz
Algorithm Hash digest
SHA256 0b03071bb96cb92bb4acef4411a60b43c1cf214c54526330969b9377715b3dd8
MD5 a55ccf9fd639d6f9a1f52390a795541a
BLAKE2b-256 0ba40a4b5a8272b227063d95d9ea5dc4a759116340ed1afc40d65d96a36286c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pretix_eupago-1.2.1.tar.gz:

Publisher: ci.yml on afonsosantos/pretix-eupago

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pretix_eupago-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: pretix_eupago-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pretix_eupago-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9b16fb5ca82b258987db8866f2fa57e19803ad2c69d508e423bf0aa6ade6ee2
MD5 3eee082a40b5c2333fcd15628015babc
BLAKE2b-256 a0705874aa3f0d72e03febc798db42d87feb91d7e83b073c5e3450d12052e882

See more details on using hashes here.

Provenance

The following attestation bundles were made for pretix_eupago-1.2.1-py3-none-any.whl:

Publisher: ci.yml on afonsosantos/pretix-eupago

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.3.0

2 files

This release

1.2.1 This release

2 files

1.2.0

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page