summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--talerblog/blog/blog.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 9c4f8ad..d652808 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -337,12 +337,16 @@ def article(article_name, data=None):
# run the payment protocol.
taler_pay_uri = pay_status["taler_pay_uri"]
qrcode_svg = get_qrcode_svg(taler_pay_uri)
- check_status_url = flask.url_for(
- "check_status", order_id=order_id, session_id=session_id)
+ check_status_url_enc = urllib.parse.quote(
+ flask.url_for(
+ "check_status",
+ order_id=order_id,
+ session_id=session_id))
content = flask.render_template("templates/request_payment.html",
article_name=article_name,
taler_pay_uri=taler_pay_uri,
- qrcode_svg=qrcode_svg)
+ qrcode_svg=qrcode_svg,
+ check_status_url_enc=check_status_url_enc)
headers = { "Taler": taler_pay_uri }
resp = flask.Response(content, status=402, headers=headers)
return resp