pretix-thepay 9.0.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pretix_thepay/__init__.py +15 -0
- pretix_thepay/apps.py +40 -0
- pretix_thepay/locale/en/LC_MESSAGES/django.po +5 -0
- pretix_thepay/payment.py +763 -0
- pretix_thepay/pretix_plugin_urls.py +10 -0
- pretix_thepay/signals.py +18 -0
- pretix_thepay/urls.py +15 -0
- pretix_thepay/views.py +345 -0
- pretix_thepay-9.0.18.dist-info/METADATA +139 -0
- pretix_thepay-9.0.18.dist-info/RECORD +13 -0
- pretix_thepay-9.0.18.dist-info/WHEEL +5 -0
- pretix_thepay-9.0.18.dist-info/entry_points.txt +2 -0
- pretix_thepay-9.0.18.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The Pay payment provider plugin for Pretix.
|
|
3
|
+
|
|
4
|
+
This package provides integration with The Pay payment gateway for Pretix
|
|
5
|
+
event ticketing system.
|
|
6
|
+
"""
|
|
7
|
+
__version__ = '9.0.18'
|
|
8
|
+
|
|
9
|
+
# Import PretixPluginMeta from apps for entry point registration
|
|
10
|
+
from .apps import PluginApp
|
|
11
|
+
|
|
12
|
+
PretixPluginMeta = PluginApp.PretixPluginMeta
|
|
13
|
+
|
|
14
|
+
# Backward compatibility for older Pretix/Django that rely on default_app_config
|
|
15
|
+
default_app_config = 'pretix_thepay.apps.PluginApp'
|
pretix_thepay/apps.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The Pay payment provider plugin configuration.
|
|
3
|
+
"""
|
|
4
|
+
from django.utils.translation import gettext_lazy as _
|
|
5
|
+
|
|
6
|
+
from . import __version__
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
from pretix.base.plugins import PluginConfig, PLUGIN_LEVEL_EVENT
|
|
10
|
+
except ImportError:
|
|
11
|
+
raise RuntimeError("Please use pretix 2.7.0 or above to run this plugin!")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class PluginApp(PluginConfig):
|
|
15
|
+
"""
|
|
16
|
+
Plugin configuration for The Pay payment provider.
|
|
17
|
+
|
|
18
|
+
This class registers the The Pay payment provider with Pretix and
|
|
19
|
+
handles plugin initialization.
|
|
20
|
+
"""
|
|
21
|
+
default = True
|
|
22
|
+
name = 'pretix_thepay'
|
|
23
|
+
verbose_name = _("The Pay")
|
|
24
|
+
|
|
25
|
+
class PretixPluginMeta:
|
|
26
|
+
name = _("The Pay")
|
|
27
|
+
author = "KrisIsNew"
|
|
28
|
+
version = __version__
|
|
29
|
+
category = 'PAYMENT'
|
|
30
|
+
level = PLUGIN_LEVEL_EVENT
|
|
31
|
+
visible = True
|
|
32
|
+
featured = False
|
|
33
|
+
restricted = False
|
|
34
|
+
description = _("This plugin allows you to receive payments via The Pay payment gateway")
|
|
35
|
+
compatibility = "pretix>=2.7.0"
|
|
36
|
+
settings_links = []
|
|
37
|
+
navigation_links = []
|
|
38
|
+
|
|
39
|
+
def ready(self):
|
|
40
|
+
from . import signals # NOQA
|