gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant-frontend-examples] branch master updated: "


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant-frontend-examples] branch master updated: "contract" gone from python tutorial, plus explanation of proposal vs order vs contract.
Date: Tue, 28 Mar 2017 21:27:28 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository merchant-frontend-examples.

The following commit(s) were added to refs/heads/master by this push:
     new f1d757a  "contract" gone from python tutorial, plus explanation of 
proposal vs order vs contract.
f1d757a is described below

commit f1d757ab32672cc4a84cc8d832c84fc478695e76
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Mar 28 21:26:54 2017 +0200

    "contract" gone from python tutorial, plus explanation
    of proposal vs order vs contract.
---
 python/doc/tutorial.texi | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/python/doc/tutorial.texi b/python/doc/tutorial.texi
index 2fbeb5e..5eea006 100644
--- a/python/doc/tutorial.texi
+++ b/python/doc/tutorial.texi
@@ -92,7 +92,7 @@ Taler with Web shops. It describes how to create a Web shop 
that
 processes payments with the help of a GNU Taler merchant
 @emph{backend}.  In the second chapter, you will learn how to trigger
 the payment process from the Web site, how to communicate with the
-backend, how to generate a contract and process the payment.
+backend, how to generate a proposal and process the payment.
 
 @cindex examples
 @cindex git
@@ -248,13 +248,27 @@ If the wallet is not present, the error message ``No 
wallet
 installed!'' will be shown and the Taler ``X-Taler-Contract-Url''
 header and the 402 status code ought to be ignored by the browser.
 
address@hidden A helper function to generate the proposed contract
-The next step is to generate a proposal whenever the
-wallet makes a GET @code{/generate-proposal} request.  In our example,
-this logic is implemented by the function @code{generate_proposal()}:
address@hidden A helper function to generate the order 
+
+We make distinction between @emph{three} different stages of what it
+informally called "contract".
+
+In a very first stage, we call it the @emph{order}: that occurs when
+the frontend generates the first JSON that misses some information
+that the backend is supposed to add.  When the backend completes the
+order and signs it, we have a @emph{proposal}.  The proposal is what
+the user is prompted with, and allows them to confirm the purchase.
+Once the user confirms the purchase, the wallet makes a signature over
+the proposal, turning it into a @emph{contract}.
+
+The next step is to generate a proposal whenever the wallet makes a GET
address@hidden/generate-proposal} request.  In our example, this logic is 
implemented
+by the function @code{generate_proposal()}:
 
 @c FIXME: rename package to just 'taler' or 'gnu.taler'? (Check with Florian)
 @cindex contract
address@hidden proposal
address@hidden order
 @smallexample
 ..
 from pytaler import amount

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



reply via email to

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