[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-blog] branch master updated: finish check_status
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-blog] branch master updated: finish check_status |
Date: |
Tue, 27 Aug 2019 00:33:10 +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 1776133 finish check_status
1776133 is described below
commit 1776133224171568374b04d7e46556dae00da3c2
Author: Florian Dold <address@hidden>
AuthorDate: Tue Aug 27 00:33:08 2019 +0200
finish check_status
---
talerblog/blog/blog.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 90ea11f..7162119 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -237,9 +237,13 @@ def get_qrcode_svg(data):
##
# This endpoint is used by the payment request page
# to check if the payment has been completed via the QR code.
-@app.route("/check-status/<order-id>/<session-id>")
+@app.route("/check-status/<order_id>/<session_id>")
def check_status(order_id, session_id):
- pass
+ pay_params = dict(instance=INSTANCE,
+ order_id=order_id,
+ session_id=session_id)
+ pay_status = backend_get("check-payment", pay_params)
+ return flask.jsonify(paid=pay_params["paid"])
##
# Trigger a article purchase. The logic follows the main steps:
--
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: finish check_status,
gnunet <=