merchant

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

commit 777982f0cb8663d37db43ba47181c865c924079b
parent 5bd3b0cbd9074eda3117c7e9aa9a25329425d1b6
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Mon, 12 Mar 2018 17:14:33 +0100

adding some verbosity to a snippet.

Diffstat:
Mdoc/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 @@ -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