-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.py
28 lines (21 loc) · 885 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from django.conf.urls import include, url
import pretix_mercadopago.views as views
from pretix.multidomain import event_url
from .views import (
oauth_disconnect, redirect_view, success,
)
event_patterns = [
url(r'^mercadopago/', include([
url(r'^return/$', success, name='return'),
url(r'^redirect/$', redirect_view, name='redirect'),
url(r'w/(?P<cart_namespace>[a-zA-Z0-9]{16})/return/', success, name='return'),
event_url(r'^webhook/$', success, name='webhook', require_live=False),
])),
]
urlpatterns = [
url(r'^control/event/(?P<organizer>[^/]+)/(?P<event>[^/]+)/mercadopago/',
views.admin_view, name='backend'),
url(r'^control/event/(?P<organizer>[^/]+)/(?P<event>[^/]+)/mercadopago/disconnect/',
oauth_disconnect, name='oauth.disconnect'),
url(r'^mercadopago/webhook/$', success, name='webhook'),
]