diff --git a/server-ca/chocolate.py b/server-ca/chocolate.py index e29cc9221..55cf9e973 100755 --- a/server-ca/chocolate.py +++ b/server-ca/chocolate.py @@ -422,7 +422,8 @@ class session(object): chall.name = "payment" chall.succeeded = False # In payment, we send address of form to complete this payment - chall.data.append(str("%s/%s" % (payment_uri, self.id))) + abbreviation = sessions.hget(self.id, "shorturl") + chall.data.append(str("%s/%s" % (payment_uri, abbreviation))) def POST(self): web.header("Content-type", "application/x-protobuf+chocolate") diff --git a/server-ca/index.html b/server-ca/index.html new file mode 100644 index 000000000..2a1f7508f --- /dev/null +++ b/server-ca/index.html @@ -0,0 +1,80 @@ + + +
+ + +-
- A payment of 17.00 simoleons is due now. -
- In order to process this payment, please pretend to enter a 16-digit credit-card - number below, and then click the Submit Payment button. -
-
- This payment will appear on your - credit card statement as TRUSTIFIABLE CERTIFICATE SERVICES. - - """ % what + expanded = r.get("shorturl-%s" % what) + if not expanded: + return "