summaryrefslogtreecommitdiff
path: root/talerblog
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-26 03:49:42 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-26 03:49:42 +0200
commitb27c669d6f7fa4f5e625dc9e76911a938a25f6e1 (patch)
tree10658ebe32a4b0ec5dce35cf405c035ee401218e /talerblog
parent2ee0cceb9003d3ac4c53fbd81966b94849b43b55 (diff)
downloadblog-b27c669d6f7fa4f5e625dc9e76911a938a25f6e1.tar.gz
blog-b27c669d6f7fa4f5e625dc9e76911a938a25f6e1.tar.bz2
blog-b27c669d6f7fa4f5e625dc9e76911a938a25f6e1.zip
redirect to already_paid_order_id
Diffstat (limited to 'talerblog')
-rw-r--r--talerblog/blog/blog.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 460fc9a..c10bfcd 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -322,7 +322,12 @@ def article(article_name, data=None):
##
# Finally return the article.
return render_article(article_name, data, order_id)
-
+ elif pay_status.get("already_paid_order_id") is not None:
+ return flask.redirect(
+ url_for(
+ "article",
+ article_name=article_name,
+ order_id=pay_status.get("already_paid_order_id"))
else:
##
# Redirect the browser to a page where the wallet can