summaryrefslogtreecommitdiff
path: root/taler-nfc-guide.rst
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-06-23 23:12:59 +0200
committerChristian Grothoff <christian@grothoff.org>2020-06-23 23:12:59 +0200
commit5d3aef5d035c1a78c930b44d19485396d190e09e (patch)
treecfd30015d26c596bd786d4d6facc179073c4c0d3 /taler-nfc-guide.rst
parentccf586100520ea3c56651403d005c78115f42497 (diff)
downloaddocs-5d3aef5d035c1a78c930b44d19485396d190e09e.tar.gz
docs-5d3aef5d035c1a78c930b44d19485396d190e09e.tar.bz2
docs-5d3aef5d035c1a78c930b44d19485396d190e09e.zip
fix RST warnings
Diffstat (limited to 'taler-nfc-guide.rst')
-rw-r--r--taler-nfc-guide.rst13
1 files changed, 6 insertions, 7 deletions
diff --git a/taler-nfc-guide.rst b/taler-nfc-guide.rst
index 2023935..88fa13d 100644
--- a/taler-nfc-guide.rst
+++ b/taler-nfc-guide.rst
@@ -45,7 +45,7 @@ using `curl <https://curl.haxx.se/docs/manpage.html>`_ to make HTTP(S) requests.
can be opened, and give a warning if it is detected that the devices does not have Internet
connectivity.
- The following :http:post:`/order` request to the merchant backend creates a
+ The following :http:post:`/private/orders` request to the merchant backend creates a
simple order:
.. code-block:: sh
@@ -63,20 +63,20 @@ using `curl <https://curl.haxx.se/docs/manpage.html>`_ to make HTTP(S) requests.
}
EOF
)
- $ curl -XPOST -H"$auth_header" -d "$order_req" "$backend_base_url"/order
+ $ curl -XPOST -H"$auth_header" -d "$order_req" "$backend_base_url"/private/orders
{
"order_id": "2019.255-02YDHMXCBQP6J"
}
2. The merchant checks the payment status of the order using
- :http:get:`/check-payment`:
+ :http:get:`/private/orders/$ORDER_ID`:
.. code-block:: sh
$ backend_base_url=https://backend.demo.taler.net/
$ auth_header='Authorization: ApiKey sandbox'
$ curl -XGET -H"$auth_header" \
- "$backend_base_url/check-payment?order_id=2019.255-02YDHMXCBQP6J"
+ "$backend_base_url/private/orders/2019.255-02YDHMXCBQP6J"
# Response:
{
"taler_pay_uri": "taler://pay/backend.demo.taler.net/-/-/2019.255-02YDHMXCBQP6J",
@@ -121,7 +121,7 @@ using `curl <https://curl.haxx.se/docs/manpage.html>`_ to make HTTP(S) requests.
$ backend_base_url=https://backend.demo.taler.net/
$ auth_header='Authorization: ApiKey sandbox'
$ curl -XGET -H"$auth_header" \
- "$backend_base_url/check-payment?order_id=2019.255-02YDHMXCBQP6J"
+ "$backend_base_url/private/orders/2019.255-02YDHMXCBQP6J"
# Response:
{
"paid": true,
@@ -135,7 +135,7 @@ using `curl <https://curl.haxx.se/docs/manpage.html>`_ to make HTTP(S) requests.
before responding with the fulfillment page.
For in-store payments, the merchant must periodically check the payment status.
- Instead of polling in a busy loop, the ``long_poll_ms`` parameter of :http:get:`/check-payment`
+ Instead of polling in a busy loop, the ``timeout_ms`` parameter of :http:get:`/private/orders/$ORDER_ID`
should be used.
@@ -281,4 +281,3 @@ The request tunneling request/response JSON messages have the following schema:
// May contain error details if 'status==0'
body?: object;
}
-