28 lines
815 B
Python
28 lines
815 B
Python
from django.conf import settings
|
|
from django.conf.urls import patterns, url, include
|
|
|
|
from regluit.payment.views import StripeView
|
|
|
|
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())
|
|
)
|
|
|
|
|