33 lines
1005 B
Python
33 lines
1005 B
Python
from django.conf.urls.defaults import *
|
|
from django.conf import settings
|
|
|
|
urlpatterns = patterns(
|
|
"regluit.payment.views",
|
|
url(r"^handleipn/(?P<module>\w+)$", "handleIPN", name="HandleIPN"),
|
|
)
|
|
|
|
# Amazon payment URLs
|
|
urlpatterns += patterns(
|
|
"regluit.payment.amazon",
|
|
url(r"^amazonpaymentreturn", "amazonPaymentReturn", name="AmazonPaymentReturn"),
|
|
)
|
|
|
|
# this should be on only if DEBUG is on
|
|
|
|
if settings.DEBUG:
|
|
urlpatterns += patterns(
|
|
"regluit.payment.views",
|
|
url(r"^testpledge", "testPledge"),
|
|
url(r"^testauthorize", "testAuthorize"),
|
|
url(r"^testexecute", "testExecute"),
|
|
url(r"^testcancel", "testCancel"),
|
|
url(r"^querycampaign", "queryCampaign"),
|
|
url(r"^runtests", "runTests"),
|
|
url(r"^paymentcomplete","paymentcomplete"),
|
|
url(r"^checkstatus", "checkStatus"),
|
|
url(r"^testfinish", "testFinish"),
|
|
url(r"^testrefund", "testRefund"),
|
|
url(r"^testmodify", "testModify"),
|
|
)
|
|
|
|
|