mock payments processor

This commit is contained in:
Seth Schoen 2012-11-15 14:27:23 -08:00
parent eb4dbf82a9
commit aed32981f1

23
server-ca/payment.py Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env python
import web, redis
urls = (
'.*', 'payment'
)
r = redis.Redis()
class payment(object):
def GET(self):
web.header("Content-type", "text/html")
s = ""
try: s = web.data()
except: pass
return "Hello there! " + s
if __name__ == "__main__":
app = web.application(urls, globals())
app.run()
# vim: set tabstop=4 shiftwidth=4 expandtab