Fix #32 -- Add a PayPal webhook listener

This commit is contained in:
Raphael Michel
2017-01-04 16:45:57 +01:00
parent 30d67cd4ad
commit 847997ea9b
10 changed files with 434 additions and 9 deletions

View File

@@ -1,10 +1,17 @@
from django.conf.urls import include, url
from .views import abort, success
from .views import abort, 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'),
])),
]
urlpatterns = [
url(r'^control/event/(?P<organizer>[^/]+)/(?P<event>[^/]+)/paypal/refund/(?P<id>\d+)/',
refund, name='refund'),
]