merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 5bd3b0cbd9074eda3117c7e9aa9a25329425d1b6
parent 9b56f3e95fb3d6a80e0ab46b35c779ce01332b0d
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon, 12 Mar 2018 13:09:09 +0100

doc: fix errors in python snippets

Diffstat:
Mdoc/merchant-api.content.texi | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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", data=order, +>>> requests.post("https://backend.demo.taler.net/order", json=order, ... headers={"Authorization": "ApiKey sandbox"}) <Response [200]> @end verbatim @@ -436,7 +436,7 @@ curl -i -X POST 'https://backend.demo.taler.net/refund' \ >>> refund_req = dict(order_id="2018.058.21.46.06-024C85K189H8P", ... refund="KUDOS:10", ... reason="Customer did not like the product") ->>> requests.post("https://backend.demo.taler.net/refund", data=refund_req, +>>> requests.post("https://backend.demo.taler.net/refund", json=refund_req, ... headers={"Authorization": "ApiKey sandbox"}) <Response [200]> @end verbatim @@ -555,7 +555,7 @@ curl -i -X POST 'https://backend.demo.taler.net/tip-authorize' \ >>> tip_req = dict(amount="KUDOS:0.5", ... instance="default", ... justification="User filled out survey") ->>> requests.post("https://backend.demo.taler.net/refund", data=tip_req, +>>> requests.post("https://backend.demo.taler.net/refund", json=tip_req, ... headers={"Authorization": "ApiKey sandbox"}) <Response [200]> @end verbatim