diff options
author | Thien-Thi Nguyen <ttn@gnuvola.org> | 2021-04-13 09:50:42 -0400 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnuvola.org> | 2021-04-13 09:50:42 -0400 |
commit | a3b06f13b2a8e7059e233a3216a40f37a6b2fa61 (patch) | |
tree | 47082eff44924ab066dab2de45446e8e7218ec44 | |
parent | 1226c0dde2a8379f1ec0fad6099357dc3dcb60e5 (diff) | |
download | docs-a3b06f13b2a8e7059e233a3216a40f37a6b2fa61.tar.gz docs-a3b06f13b2a8e7059e233a3216a40f37a6b2fa61.tar.bz2 docs-a3b06f13b2a8e7059e233a3216a40f37a6b2fa61.zip |
expand ‘PayRequest’ example; add some notes
-rw-r--r-- | taler-mcig.rst | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/taler-mcig.rst b/taler-mcig.rst index 77a21a13..dba3a354 100644 --- a/taler-mcig.rst +++ b/taler-mcig.rst @@ -509,10 +509,32 @@ W: :http:post:`/orders/G93420934823/pay` // PayRequest { - "coins": FIXME, - "session_id": FIXME + "coins": [ + // CoinPaySig + { + "coin_sig": ..., + "coin_pub": ..., + "ub_sig": ..., + "h_denom": ..., + "contribution": "KUDOS:8.0", + "exchange_url": ... + }, + { + "coin_sig": ..., + "coin_pub": ..., + "ub_sig": ..., + "h_denom": ..., + "contribution": "KUDOS:2.0", + "exchange_url": ... + } + ] } +Notes: +- There is no session ID in the ``PayRequest`` object. +- The total of the contribution is 8.0 + 2.0 = 10.0 KUDOS, + which is enough to cover the purchase price (9.87 KUDOS). + The backend returns ``200 OK`` with body: .. code-block:: javascript |