Skip to main content

pretix-thepay

The Pay payment provider plugin for Pretix. It creates payments via The Pay API, redirects customers to The Pay, and confirms payment status using the return and notification callbacks.

Features

  • The Pay REST API integration (payment creation, status lookup)

  • Redirect-based checkout flow

  • Server-to-server notifications

  • Refunds (full and partial)

  • ISO 4217 currency support with correct minor units

  • Demo mode via Test Mode setting

  • Multi-language gateway support (Czech, Slovak, English)

Requirements

  • Pretix >= 2.7.0

  • Python >= 3.8

  • requests >= 2.25.0

Installation

Install from PyPI:

pip install pretix-thepay

Or install from source:

pip install -e /path/to/pretix-thepay

Enable the plugin in pretix.cfg:

[pretix]
plugins = pretix_thepay

Restart Pretix after enabling the plugin.

Configuration

In the Pretix control panel, enable The Pay and configure:

  • Merchant ID: Your The Pay merchant ID

  • Project ID: Your The Pay project ID

  • API Password: Your The Pay API password

  • Language: Default language for the payment gateway

  • Test Mode: Enable to use the demo environment

Behavior

  1. The customer selects The Pay.

  2. Pretix creates a payment at The Pay and redirects the customer.

  3. The customer completes payment on The Pay.

  4. Pretix confirms the payment by querying The Pay from the return URL and from notifications.

Notes

  • Test Mode switches the API base URL to the demo environment.

  • The Pay requires a customer name plus email or phone; Pretix order data is used.

Refunds

Refunds are initiated from Pretix and sent to The Pay. The plugin supports full and partial refunds for payments that support automatic refunds in The Pay.

Troubleshooting

Payment not created

  • Verify Merchant ID, Project ID, and API Password

  • Check Pretix logs for The Pay API response details

  • Ensure the customer has a name and email or phone

Notifications not arriving

  • Make sure Pretix is reachable from The Pay (public URL)

  • Confirm your server IP is allowed in The Pay administration

Docker

For Pretix in Docker:

FROM pretix/standalone:stable
USER root
RUN pip3 install pretix-thepay
USER pretixuser
RUN cd /pretix/src && make production

License

Apache Software License 2.0

References

Metadata

Release files for pretix-thepay 9.0.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pretix-thepay 9.0.24
File Size Uploaded
pretix_thepay-9.0.24.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pretix-thepay 9.0.24
File Interpreter ABI Platform
pretix_thepay-9.0.24-py3-none-any.whl Python 3 none any Details

Total release size: 31.5 kB

Release files / pretix_thepay-9.0.24.tar.gz

Download URL pretix_thepay-9.0.24.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
80a188f756c3479f16d27c6a50a423e38cba3919f853036c23a937acfcab7f79
BLAKE2b-256 checksum
How to use checksums
8a1abd727b125b73d5191a60ad06fd397603245d1746044598646a0170a49512
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pretix_thepay-9.0.24-py3-none-any.whl

Download URL pretix_thepay-9.0.24-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db8360581d7dfcbac8caf172d4c6c48fe1843f225b921cf5a8c7ff179f7aaef1
BLAKE2b-256 checksum
How to use checksums
38eab64803aae9f2c018c136b7deaede5f3986c6da6d8652c8fa88cfc9eafb74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

9.1.0

2 release files

This release

9.0.24 This release

2 release files

9.0.23

2 release files

9.0.22

2 release files

9.0.21

2 release files

9.0.20

2 release files

9.0.19

2 release files

9.0.18

2 release files

9.0.17

2 release files

9.0.16

2 release files

9.0.15

2 release files

9.0.14

2 release files

9.0.13

2 release files

9.0.12

2 release files

9.0.11

2 release files

9.0.9

2 release files

9.0.8

2 release files

9.0.7

1 release file

9.0.6

2 release files

9.0.5

2 release files

9.0.4

2 release files

9.0.3

2 release files

9.0.2

2 release files

9.0.1

2 release files

6.0.2

2 release files

6.0.1

2 release files

3.0.1

2 release files

2.0.1

2 release files

1.0.1

2 release files

1.0.0

2 release 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