Skip to main content

The Pay payment provider for Pretix

Project description

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

Features

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

  • Redirect-based checkout flow

  • Server-to-server notifications

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

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

Notification issues

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

  • Confirm the notification URL is accessible and responds quickly

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

Project 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_thepay-9.0.6.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

pretix_thepay-9.0.6-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file pretix_thepay-9.0.6.tar.gz.

File metadata

  • Download URL: pretix_thepay-9.0.6.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pretix_thepay-9.0.6.tar.gz
Algorithm Hash digest
SHA256 437165de6ba4f6af2c602e409a21f6de93cd75f2e97a73de6c626360effc9168
MD5 9f327cec34209c75cadaa9f0670dded8
BLAKE2b-256 2487a1c7d7e5f3d027f08eb2cee3a879dec56b1353d4e88445284d7124983fe8

See more details on using hashes here.

File details

Details for the file pretix_thepay-9.0.6-py3-none-any.whl.

File metadata

  • Download URL: pretix_thepay-9.0.6-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pretix_thepay-9.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5d4e95d0e2f2c86c623ceb5e4b397eca3f776c5b0d6d7058276056f23e1f1cdd
MD5 edc35485ec8d4af71605df9723d1a1e1
BLAKE2b-256 2de73b11b4d0af5086b6ef58a7c9e69cfbe011382ea1993bf568d3931a76c420

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page