Stripe: Event-independent webhooks

This commit is contained in:
Raphael Michel
2017-07-23 12:22:48 +02:00
parent 7c91bc2f37
commit 5f529817ef
7 changed files with 116 additions and 24 deletions

View File

@@ -1,10 +1,10 @@
from django.conf.urls import include, url
from .views import ReturnView, refund, webhook
from .views import ReturnView, event_webbook, refund, webhook
event_patterns = [
url(r'^stripe/', include([
url(r'^webhook/$', webhook, name='webhook'),
url(r'^webhook/$', event_webbook, name='webhook'),
url(r'^return/(?P<order>[^/]+)/(?P<hash>[^/]+)/$', ReturnView.as_view(), name='return'),
])),
]
@@ -12,4 +12,5 @@ event_patterns = [
urlpatterns = [
url(r'^control/event/(?P<organizer>[^/]+)/(?P<event>[^/]+)/stripe/refund/(?P<id>\d+)/',
refund, name='refund'),
url(r'^_stripe/webhook/$', webhook, name='webhook'),
]