2011-09-27 12:48:11 +00:00
|
|
|
from django.conf.urls.defaults import *
|
2012-01-18 17:08:34 +00:00
|
|
|
from django.conf import settings
|
2011-09-27 12:48:11 +00:00
|
|
|
|
|
|
|
urlpatterns = patterns(
|
|
|
|
"regluit.payment.views",
|
2012-05-11 11:19:13 +00:00
|
|
|
url(r"^handleipn/(?P<module>\w+)$", "handleIPN", name="HandleIPN"),
|
2012-04-18 20:22:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Amazon payment URLs
|
|
|
|
urlpatterns += patterns(
|
|
|
|
"regluit.payment.amazon",
|
|
|
|
url(r"^amazonpaymentreturn", "amazonPaymentReturn", name="AmazonPaymentReturn"),
|
2012-01-18 17:08:34 +00:00
|
|
|
)
|
|
|
|
|
2012-05-17 20:54:09 +00:00
|
|
|
# this should be on only if DEBUG is on
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
2012-01-18 17:08:34 +00:00
|
|
|
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"),
|
2012-04-11 16:51:18 +00:00
|
|
|
url(r"^testmodify", "testModify"),
|
|
|
|
)
|
2012-04-11 17:37:41 +00:00
|
|
|
|
|
|
|
|