Add callback url.

This commit is contained in:
Víðir Valberg Guðmundsson 2016-05-10 20:03:32 +02:00
parent bbaf3ea964
commit ba201d9cf6

View file

@ -5,11 +5,21 @@ from .views import (
TicketOrderView, TicketOrderView,
TicketDetailView, TicketDetailView,
EpayView, EpayView,
EpayCallbackView,
) )
urlpatterns = [ urlpatterns = [
url(r'order/$', TicketOrderView.as_view(), name='order'), url(r'order/$', TicketOrderView.as_view(), name='order'),
url(r'pay/credit_card/(?P<ticket_id>[a-zA-Z0-9\-]+)/$', EpayView.as_view(), name='epay_form'), url(
r'pay/credit_card/(?P<ticket_id>[a-zA-Z0-9\-]+)/$',
EpayView.as_view(),
name='epay_form'
),
url(
r'epay_callback/',
EpayCallbackView,
name='epay_callback'
),
url( url(
r'detail/(?P<pk>[a-zA-Z0-9\-]+)/$', r'detail/(?P<pk>[a-zA-Z0-9\-]+)/$',
TicketDetailView.as_view(), TicketDetailView.as_view(),