gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-merchant-demos] branch master updated: fix url construction


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated: fix url construction
Date: Tue, 28 Jul 2020 23:14:04 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository taler-merchant-demos.

The following commit(s) were added to refs/heads/master by this push:
     new c6f9aab  fix url construction
c6f9aab is described below

commit c6f9aab55f84926ae1cf1026a1cc78d6ee15bfcd
Author: MS <ms@taler.net>
AuthorDate: Tue Jul 28 23:13:59 2020 +0200

    fix url construction
---
 talermerchantdemos/blog/blog.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py
index 0aa7987..cde9006 100644
--- a/talermerchantdemos/blog/blog.py
+++ b/talermerchantdemos/blog/blog.py
@@ -228,8 +228,11 @@ def get_qrcode_svg(data):
 # to check if the payment has been completed via the QR code.
 @app.route("/check-status/<order_id>/<session_id>")
 def check_status(order_id, session_id):
-    pay_params = dict(order_id=order_id, session_id=session_id)
-    pay_status = backend_get(BACKEND_URL, "check-payment", pay_params)
+    pay_status = backend_get(
+        BACKEND_URL,
+        f"private/orders/{order_id}/",
+        dict(session_id=session_id)
+    )
     return flask.jsonify(paid=pay_status["paid"])
 
 
@@ -328,7 +331,9 @@ def article(article_name, data=None):
     taler_pay_uri = pay_status["taler_pay_uri"]
     qrcode_svg = get_qrcode_svg(taler_pay_uri)
     check_status_url_enc = urllib.parse.quote(
-        flask.url_for(f"private/orders/{order_id}", session_id=session_id)
+        flask.url_for(
+            "check_status", order_id=order_id, session_id=session_id
+        )
     )
     content = flask.render_template(
         "templates/request_payment.html",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]