[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant-frontend-examples] branch master updated (c
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant-frontend-examples] branch master updated (cc82d28 -> 94836e9) |
Date: |
Sun, 25 Jun 2017 09:50:24 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a change to branch master
in repository merchant-frontend-examples.
from cc82d28 grammar issue
new e08cd7e update currency
new 94836e9 broken api
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
python/doc/tutorial.texi | 4 ++--
python/example/example.py | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/python/doc/tutorial.texi b/python/doc/tutorial.texi
index a95b83b..98b2054 100644
--- a/python/doc/tutorial.texi
+++ b/python/doc/tutorial.texi
@@ -172,7 +172,7 @@
address@hidden://docs.taler.net/current/merchant-backend/manual.html}
you can use the public backend provided by the Taler
project for testing. This public backend has been set-up at
@code{http://backend.test.taler.net/} specifically for testing
-frontends. It uses the currency ``PUDOS'' and all payments will
+frontends. It uses the currency ``TESTKUDOS'' and all payments will
go into the ``Tutorial'' account at the Taler ``bank'' running at
@code{https://bank.test.taler.net/public-accounts}.
@@ -181,7 +181,7 @@ global variables, as shown below from
@code{python/example/example.py}:
@smallexample
..
-CURRENCY = "PUDOS"
+CURRENCY = "TESTKUDOS"
BACKEND_URL = "http://backend.test.taler.net/"
..
@end smallexample
diff --git a/python/example/example.py b/python/example/example.py
index 2090e94..3a64407 100644
--- a/python/example/example.py
+++ b/python/example/example.py
@@ -14,7 +14,7 @@ app = flask.Flask(__name__)
app.secret_key = base64.b64encode(os.urandom(64)).decode('utf-8')
logger = logging.getLogger(__name__)
-CURRENCY = "PUDOS"
+CURRENCY = "TESTKUDOS"
BACKEND_URL = "http://backend.test.taler.net/"
def make_url(page, *query_params):
@@ -107,9 +107,9 @@ def pay():
r = requests.post(urljoin(BACKEND_URL, 'pay'), json=deposit_permission)
if 200 != r.status_code:
return r.text, r.status_code
- proposal_data = r.json()["proposal_data"]
+ contract_terms = r.json()["contract_terms"]
flask.session["paid"] = True
- flask.session["order_id"] = proposal_data["order_id"]
+ flask.session["order_id"] = contract_terms["order_id"]
return flask.Response(status=200)
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-merchant-frontend-examples] branch master updated (cc82d28 -> 94836e9),
gnunet <=