[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-blog] branch master updated: refund with qr code
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-blog] branch master updated: refund with qr code |
Date: |
Fri, 30 Aug 2019 17:36:09 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository blog.
The following commit(s) were added to refs/heads/master by this push:
new 73761b1 refund with qr code
73761b1 is described below
commit 73761b1cd308e5e7f62e2ab2c296657506c445bc
Author: Florian Dold <address@hidden>
AuthorDate: Fri Aug 30 17:36:06 2019 +0200
refund with qr code
---
talerblog/blog/blog.py | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 0b56027..2cafd0d 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -217,7 +217,16 @@ def refund(order_id):
article_name = resp["contract_terms"]["extra"]["article_name"]
session_id = flask.session.get("session_id", "")
paid_articles_cache.delete(session_id + "-" + article_name)
- return flask.redirect(resp["refund_redirect_url"])
+ taler_refund_uri = resp["taler_refund_uri"]
+ qrcode_svg = get_qrcode_svg(taler_refund_uri)
+ content = flask.render_template(
+ "templates/show_refund.html",
+ article_name=article_name,
+ taler_refund_uri=taler_refund_uri,
+ qrcode_svg=qrcode_svg,
+ )
+ headers = {"Taler": taler_refund_uri}
+ return flask.Response(content, status=402, headers=headers)
except KeyError:
err_abort(
500,
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-blog] branch master updated: refund with qr code,
gnunet <=