From ba201d9cf64513176e510793e346b40f42488f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Tue, 10 May 2016 20:03:32 +0200 Subject: [PATCH] Add callback url. --- tickets/urls.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tickets/urls.py b/tickets/urls.py index faca5bea..9783e74a 100644 --- a/tickets/urls.py +++ b/tickets/urls.py @@ -5,11 +5,21 @@ from .views import ( TicketOrderView, TicketDetailView, EpayView, + EpayCallbackView, ) urlpatterns = [ url(r'order/$', TicketOrderView.as_view(), name='order'), - url(r'pay/credit_card/(?P[a-zA-Z0-9\-]+)/$', EpayView.as_view(), name='epay_form'), + url( + r'pay/credit_card/(?P[a-zA-Z0-9\-]+)/$', + EpayView.as_view(), + name='epay_form' + ), + url( + r'epay_callback/', + EpayCallbackView, + name='epay_callback' + ), url( r'detail/(?P[a-zA-Z0-9\-]+)/$', TicketDetailView.as_view(),