From a7050f6c85828f1b39a851e85cafabc63f456c58 Mon Sep 17 00:00:00 2001 From: Kwesi Aguillera Date: Fri, 8 Sep 2017 17:45:00 -0400 Subject: [PATCH] Stubbed out the receipt for payment_for_open_source --- www/browse/payments/%uuid.html.spt | 120 +++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 www/browse/payments/%uuid.html.spt diff --git a/www/browse/payments/%uuid.html.spt b/www/browse/payments/%uuid.html.spt new file mode 100644 index 0000000000..32b1defd0d --- /dev/null +++ b/www/browse/payments/%uuid.html.spt @@ -0,0 +1,120 @@ +from aspen import Response +from gratipay.models.payment_for_open_source import PaymentForOpenSource + +[-------------------] + +try: + uuid = request.path['uuid'] +except ValueError: + raise Response(400) + +# pfos - payment_for_open_source +pfos = PaymentForOpenSource.from_uuid(uuid) + +if pfos is None: + raise Response(404) + + +[-------------------] + +
+ +
+ Gratipay, LLC
+ 716 Park Road
+ Ambridge, PA 15003
+
+ +

Receipt

+ +
+ {{ pfos.name }} +
+
+
+
+
+ + + + + + + + + + + + + + + + + +
Amount:${{ pfos.amount }}
Tax:$ 
Total:${{ pfos.amount }}
+ + + + + + + +
{{ pfos.ctime.strftime("%B %d, %Y").replace(' 0', ' ') }}Transaction ID: {{ pfos.transaction_id }}
+ +