diff --git a/server-ca/index.html b/server-ca/index.html index 2a1f7508f..4389d4477 100644 --- a/server-ca/index.html +++ b/server-ca/index.html @@ -39,8 +39,8 @@

Payment Form

-

-

:

+

+

diff --git a/server-ca/payment.py b/server-ca/payment.py index fd13f95af..f500f09f7 100755 --- a/server-ca/payment.py +++ b/server-ca/payment.py @@ -36,7 +36,10 @@ class payment(object): if r.hget(session, "state") != "payment": return "Attempt to process payment for session not expecting it." r.publish("payments", session) - return "

Thank you!

Processed a payment for session ID %s." % session + names = r.lrange("%s:names" % session, 0, -1) + names_list = '' + with open("thanks.html","r") as f: + return f.read() % (session, names_list) if __name__ == "__main__": app = web.application(urls, globals()) diff --git a/server-ca/thanks.html b/server-ca/thanks.html new file mode 100644 index 000000000..8ba30e48e --- /dev/null +++ b/server-ca/thanks.html @@ -0,0 +1,61 @@ + + + + + + Project Chocolate + + + + + + + + + + +
+
+

Thank you

+
+
+ +
+
+ +
+
+
+
+

Thanks for your payment!

+

+ You successfully processed a credit card payment of 17.00 simoleons for the + issuance of a digital certificate.

This payment relates to session ID %s, which + requested a certificate for the following names:

+

+ %s +

+
+
+
+
+ + + +
+
+ + + + + + diff --git a/trustify/client/payment_challenge.py b/trustify/client/payment_challenge.py index 46d9b811d..84fd73e28 100644 --- a/trustify/client/payment_challenge.py +++ b/trustify/client/payment_challenge.py @@ -35,7 +35,7 @@ class Payment_Challenge(Challenge): def get_display_string(self): if self.times_performed == 0: - return "You are buying " + self.formatted_reasons() + " You will need to visit " + self.url + " to submit your payment\nPlease press enter once your payment has been submitted" + return "You are buying " + self.formatted_reasons() + "You will need to visit\n " + self.url + "\nto submit your payment.\nPlease press Enter once your payment has been submitted." # The user has tried at least once... display a different message else: