PayPal: Event-independent webhooks

This commit is contained in:
Raphael Michel
2017-07-23 12:38:41 +02:00
parent 5f529817ef
commit 1d2d9d8b99
8 changed files with 112 additions and 15 deletions

View File

@@ -1,12 +1,12 @@
from django.conf.urls import include, url
from .views import abort, refund, success, webhook
from .views import abort, event_webbook, refund, success, webhook
event_patterns = [
url(r'^paypal/', include([
url(r'^abort/$', abort, name='abort'),
url(r'^return/$', success, name='return'),
url(r'^webhook/$', webhook, name='webhook'),
url(r'^webhook/$', event_webbook, name='webhook'),
])),
]
@@ -14,4 +14,5 @@ event_patterns = [
urlpatterns = [
url(r'^control/event/(?P<organizer>[^/]+)/(?P<event>[^/]+)/paypal/refund/(?P<id>\d+)/',
refund, name='refund'),
url(r'^_paypal/webhook/$', webhook, name='webhook'),
]