merchant-frontend-examples

ZZZ: Inactive/Deprecated
Log | Files | Refs

commit 543cf84ec24fdfae9cdfaa6defefeca5938cd2a5
parent 517577c6627c5ca3364b9d71dc09a13c8f8ffe6e
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Sun, 26 Mar 2017 22:26:55 +0200

include pay_url in the proposal

Diffstat:
Mpython/doc/tutorial.texi | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python/doc/tutorial.texi b/python/doc/tutorial.texi @@ -276,6 +276,7 @@ def generate_proposal(): ), ], fulfillment_url=make_url("/fulfillment"), + pay_url=make_url("/pay"), merchant=dict( address="nowhere", name="Donation tutorial", @@ -368,7 +369,7 @@ in our example. The role of the @code{/pay} handler is to receive the payment from the wallet and forward it to the backend. The backend executes the payment. If it reports that the payment was successful -by returning a 200 status code, the handler needs to update +by returning a "200 OK" status code, the handler needs to update the session state with the browser to remember that the user paid. If the backend reports a failure, the error response is passed on to the wallet.