gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-blog] branch master updated: actually include extra


From: gnunet
Subject: [GNUnet-SVN] [taler-blog] branch master updated: actually include extra information in contract terms
Date: Fri, 19 Jan 2018 03:08:03 +0100

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 15544eb  actually include extra information in contract terms
15544eb is described below

commit 15544eb98cc60a59100846dcdc06c9b193e68cb4
Author: Florian Dold <address@hidden>
AuthorDate: Fri Jan 19 03:08:00 2018 +0100

    actually include extra information in contract terms
---
 talerblog/blog/blog.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 7d11294..91e627e 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -127,10 +127,10 @@ def refund(order_id):
     if not order_id:
         return flask.jsonify(dict(error="Aborting refund: article not 
payed")), 401
     refund_spec = dict(
+        instance=INSTANCE,
         order_id=order_id,
-        refund=ARTICLE_AMOUNT,
         reason="Demo reimbursement",
-        instance=INSTANCE,
+        refund=ARTICLE_AMOUNT,
     )
     resp = backend_post("refund", refund_spec)
     try:
@@ -189,10 +189,11 @@ def article(article_name, data=None):
 
     if not order_id:
         order = dict(
-            summary="Essay: " + article_name.replace("_", " "),
-            fulfillment_url=flask.request.base_url,
             amount=ARTICLE_AMOUNT,
+            extra=dict(article_name=article_name),
+            fulfillment_url=flask.request.base_url,
             instance=INSTANCE,
+            summary="Essay: " + article_name.replace("_", " "),
         )
         proposal_resp = backend_post("proposal", dict(order=order))
         order_id = proposal_resp["order_id"]
@@ -203,7 +204,6 @@ def article(article_name, data=None):
         resource_url=flask.request.base_url,
         session_id=session_id,
         session_sig=session_sig,
-        extra=dict(article_name=article_name)
     )
 
     pay_status = backend_get("check-payment", pay_params)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]