gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated (777982f -> 54a4b43)


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated (777982f -> 54a4b43)
Date: Tue, 13 Mar 2018 11:15:32 +0100

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

marcello pushed a change to branch master
in repository merchant.

    from 777982f  adding some verbosity to a snippet.
     new b551b1a  typo + url fix.
     new 54a4b43  minor edits.

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:
 doc/merchant-api.content.texi | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/doc/merchant-api.content.texi b/doc/merchant-api.content.texi
index fba3dc8..a5b6389 100644
--- a/doc/merchant-api.content.texi
+++ b/doc/merchant-api.content.texi
@@ -462,7 +462,7 @@ curl -i -X POST 'https://backend.demo.taler.net/refund' \
 GNU Taler allows Web sites to grant small amounts directly to the
 visitor.  The idea is that some sites may want incentivize actions
 such as filling out a survey or trying a new feature.  It is important
-to note that tips are not enforcable for the visitor, as there is no
+to note that tips are not enforceable for the visitor, as there is no
 contract. It is simply a voluntary gesture of appreciation of the site
 to its visitor.  However, once a tip has been granted, the visitor
 obtains full control over the funds provided by the site.
@@ -496,7 +496,7 @@ curl -i 
'https://backend.demo.taler.net/tip-query?instance=default' --header "Au
 @example
 @verbatim
 >>> import requests
->>> requests.get("https://backend.demo.taler.net";,
+>>> requests.get("https://backend.demo.taler.net/tip-query?instance=default";,
 ...              headers={"Authorization": "ApiKey sandbox"})
 <Response [200]>
 @end verbatim
@@ -532,7 +532,8 @@ This code snipped illustrates giving a tip:
 TIP_REQ='
 {"amount: "KUDOS:0.5",
  "instance": "default",
- "justification": "User filled out survey"}
+ "justification": "User filled out survey",
+ "next_url": "https://merchant.com/thanks.html"}
 '
 
 curl -i -X POST 'https://backend.demo.taler.net/tip-authorize' \
@@ -554,7 +555,8 @@ curl -i -X POST 
'https://backend.demo.taler.net/tip-authorize' \
 >>> import requests
 >>> tip_req = dict(amount="KUDOS:0.5",
 ...                instance="default",
-...                justification="User filled out survey")
+...                justification="User filled out survey",
+...                next_url="https://merchant.com/thanks.html";)
 >>> requests.post("https://backend.demo.taler.net/refund";, json=tip_req,
 ...              headers={"Authorization": "ApiKey sandbox"})
 <Response [200]>

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



reply via email to

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