summaryrefslogtreecommitdiff
path: root/talerblog/blog/blog.py
diff options
context:
space:
mode:
Diffstat (limited to 'talerblog/blog/blog.py')
-rw-r--r--talerblog/blog/blog.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index c2a72c3..1785f77 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -332,20 +332,13 @@ def article(article_name, data=None):
##
# Redirect the browser to a page where the wallet can
# run the payment protocol.
- contract_url = pay_status["contract_url"]
- taler_pay_uri = "talerpay:" + urllib.parse.quote_plus(contract_url) + ";" + session_id
-
- headers = {
- "Taler-Contract-Url": urllib.parse.quote(contract_url),
- "Taler-Session-Url": urllib.parse.quote(session_id),
- "Taler-Resource-Url": urllib.parse.quote(resource_url),
- }
-
+ taler_pay_uri = pay_status["taler_pay_uri"]
qrcode_svg = get_qrcode_svg(taler_pay_uri)
content = flask.render_template("templates/request_payment.html",
article_name=article_name,
taler_pay_uri=taler_pay_uri,
qrcode_svg=qrcode_svg)
+ headers = { "Taler": taler_pay_uri }
resp = flask.Response(content, status=402, headers=headers)
return resp