From 1776133224171568374b04d7e46556dae00da3c2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 27 Aug 2019 00:33:08 +0200 Subject: 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//") +@app.route("/check-status//") 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: -- cgit v1.2.3