diff options
Diffstat (limited to 'taler-nfc-guide.rst')
-rw-r--r-- | taler-nfc-guide.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/taler-nfc-guide.rst b/taler-nfc-guide.rst index 1b3cfb18..fbc7a9e7 100644 --- a/taler-nfc-guide.rst +++ b/taler-nfc-guide.rst @@ -22,7 +22,8 @@ Background: Payment Processing with GNU Taler The following steps show a simple payment process with GNU Taler. Examples are written in `Bash <https://www.gnu.org/software/bash/>`_ syntax, using `curl <https://curl.haxx.se/docs/manpage.html>`_ to make HTTP(S) requests. - +They make use of the :http:post:`[/instances/$INSTANCE]/private/orders` +and :http:get:`[/instances/$INSTANCE]/private/orders` endpoints. 1. The merchant creates an *order*, which contains the details of the payment and the product/service that the customer will receive. @@ -45,7 +46,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:`/private/orders` request to the merchant backend creates a + The following POST ``/private/orders`` request to the merchant backend creates a simple order: .. code-block:: console @@ -69,7 +70,7 @@ using `curl <https://curl.haxx.se/docs/manpage.html>`_ to make HTTP(S) requests. } 2. The merchant checks the payment status of the order using - :http:get:`/private/orders/$ORDER_ID`: + GET ``/private/orders/$ORDER_ID``: .. code-block:: console @@ -135,7 +136,8 @@ 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 ``timeout_ms`` parameter of :http:get:`/private/orders/$ORDER_ID` + Instead of polling in a busy loop, the ``timeout_ms`` parameter + of GET ``/private/orders/$ORDER_ID`` should be used. |