diff options
-rw-r--r-- | talerblog/blog/blog.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py index 5504368..e365fee 100644 --- a/talerblog/blog/blog.py +++ b/talerblog/blog/blog.py @@ -287,6 +287,7 @@ def article(article_name, data=None): summary="Essay: " + article_name.replace("_", " ")) order_resp = backend_post("order", dict(order=order)) order_id = order_resp["order_id"] + return flask.redirect(url_for("article", article_name=article_name, order_id=order_id) ## # The resource URL uniquely identifies the Web resource that @@ -336,10 +337,11 @@ def article(article_name, data=None): "X-Taler-Resource-Url": resource_url, } - qrcode_data = "talerpay:" + urllib.parse.quote_plus(contract_url) + ";" + session_id - qrcode_svg = get_qrcode_svg(qrcode_data) + taler_pay_uri = "talerpay:" + urllib.parse.quote_plus(contract_url) + ";" + session_id + 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) resp = flask.Response(content, status=402, headers=headers) return resp |