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: adding some verbosi


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: adding some verbosity to a snippet.
Date: Mon, 12 Mar 2018 17:15:15 +0100

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

marcello pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 777982f  adding some verbosity to a snippet.
777982f is described below

commit 777982f0cb8663d37db43ba47181c865c924079b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Mar 12 17:14:33 2018 +0100

    adding some verbosity to a snippet.
---
 doc/merchant-api.content.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/merchant-api.content.texi b/doc/merchant-api.content.texi
index 283fa48..fba3dc8 100644
--- a/doc/merchant-api.content.texi
+++ b/doc/merchant-api.content.texi
@@ -292,7 +292,7 @@ curl -i -X POST 'https://backend.demo.taler.net/order' \
 >>> order = dict(order=dict(amount="KUDOS:10",
 ...                         summary="Donation",
 ...                         fulfillment_url="https://example.com/thanks.html";))
->>> requests.post("https://backend.demo.taler.net/order";, json=order,
+>>> order_resp = requests.post("https://backend.demo.taler.net/order";, 
json=order,
 ...               headers={"Authorization": "ApiKey sandbox"})
 <Response [200]>
 @end verbatim
@@ -343,7 +343,7 @@ curl -i 
"https://backend.demo.taler.net/check-payment?order_id=$ORDER_ID"; \
 @verbatim
 >>> import requests
 >>> r = requests.get("https://backend.demo.taler.net/check-payment";,
-...                  params=dict(order_id=order_id),
+...                  params=dict(order_id=order_resp.json()["order_id"]),
 ...                  headers={"Authorization": "ApiKey sandbox"})
 >>> print(r.json())
 @end verbatim

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



reply via email to

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