summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-03-12 17:14:33 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-03-12 17:14:33 +0100
commit777982f0cb8663d37db43ba47181c865c924079b (patch)
treec3db50fb6d2bcf1302e7305431afdbf92a042b15 /doc
parent5bd3b0cbd9074eda3117c7e9aa9a25329425d1b6 (diff)
downloadmerchant-777982f0cb8663d37db43ba47181c865c924079b.tar.gz
merchant-777982f0cb8663d37db43ba47181c865c924079b.tar.bz2
merchant-777982f0cb8663d37db43ba47181c865c924079b.zip
adding some verbosity to a snippet.
Diffstat (limited to 'doc')
-rw-r--r--doc/merchant-api.content.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/merchant-api.content.texi b/doc/merchant-api.content.texi
index 283fa486..fba3dc8f 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