[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-merchant-demos] branch master updated: revert to order ID i
From: |
gnunet |
Subject: |
[taler-taler-merchant-demos] branch master updated: revert to order ID in URL |
Date: |
Tue, 11 Aug 2020 18:42:51 +0200 |
This is an automated email from the git hooks/post-receive script.
dold 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 e67d588 revert to order ID in URL
e67d588 is described below
commit e67d5885304b78036db97b5a1ccff7da0e480f02
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Tue Aug 11 22:12:46 2020 +0530
revert to order ID in URL
---
talermerchantdemos/blog/blog.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py
index e772231..c026adb 100644
--- a/talermerchantdemos/blog/blog.py
+++ b/talermerchantdemos/blog/blog.py
@@ -212,7 +212,7 @@ def article(article_name, data=None):
# bound to a browser. This forces re-play and prevents sharing the article
# by just sharing the URL.
session_id = flask.session.get("session_id")
- order_id = flask.session.get("order_id")
+ order_id = flask.request.args.get("order_id")
if not session_id:
session_id = flask.session["session_id"] = str(uuid.uuid4())
@@ -235,9 +235,8 @@ def article(article_name, data=None):
)
order_resp = backend_post(BACKEND_URL, "private/orders",
dict(order=order))
order_id = order_resp["order_id"]
- flask.session["order_id"] = order_id
- # Prepare data for the upcoming payment check.
+ # Ask the backend for the status of the payment
pay_status = backend_get(
BACKEND_URL, f"private/orders/{order_id}",
params=dict(session_id=session_id)
)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-merchant-demos] branch master updated: revert to order ID in URL,
gnunet <=