commit 54a4b4317b03bc616039aa5b5244c5d63bc801ea
parent b551b1a5fbcfbaedda09e26c912b20dee22c8e9f
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Tue, 13 Mar 2018 11:15:19 +0100
minor edits.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/doc/merchant-api.content.texi b/doc/merchant-api.content.texi
@@ -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]>