mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
mock payments processor
This commit is contained in:
parent
eb4dbf82a9
commit
aed32981f1
1 changed files with 23 additions and 0 deletions
23
server-ca/payment.py
Executable file
23
server-ca/payment.py
Executable 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
|
||||
Loading…
Reference in a new issue