regluit/payment/urls.py

28 lines
803 B
Python
Raw Normal View History

from django.conf import settings
2013-06-03 16:31:39 +00:00
from django.conf.urls.defaults import *
from regluit.payment.views import StripeView
2011-09-27 12:48:11 +00:00
urlpatterns = patterns(
"regluit.payment.views",
url(r"^handleipn/(?P<module>\w+)$", "handleIPN", name="HandleIPN"),
)
# this should be on only if DEBUG is on
if settings.DEBUG:
urlpatterns += patterns(
"regluit.payment.views",
url(r"^testauthorize", "testAuthorize"),
url(r"^testexecute", "testExecute"),
url(r"^testcancel", "testCancel"),
url(r"^querycampaign", "queryCampaign"),
url(r"^checkstatus", "checkStatus"),
url(r"^testfinish", "testFinish"),
url(r"^testrefund", "testRefund"),
url(r"^testmodify", "testModify"),
url(r"^stripe/test", StripeView.as_view())
)