aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-03-13 11:15:19 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-03-13 11:15:19 +0100
commit54a4b4317b03bc616039aa5b5244c5d63bc801ea (patch)
treee0f8795d2d78d0833716edd4e8a9fdc18ded4905 /doc
parentb551b1a5fbcfbaedda09e26c912b20dee22c8e9f (diff)
minor edits.
Diffstat (limited to 'doc')
-rw-r--r--doc/merchant-api.content.texi6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/merchant-api.content.texi b/doc/merchant-api.content.texi
index bc16bec3..a5b63896 100644
--- 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]>