From a3b06f13b2a8e7059e233a3216a40f37a6b2fa61 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Tue, 13 Apr 2021 09:50:42 -0400 Subject: expand ‘PayRequest’ example; add some notes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taler-mcig.rst | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'taler-mcig.rst') 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 -- cgit v1.2.3 From fadb750a4aac8b317c3e9bdcfb2a415667be6f90 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Wed, 14 Apr 2021 08:02:08 -0400 Subject: replace FIXME w/ "..." in ‘PaymentResponse’ object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taler-mcig.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'taler-mcig.rst') diff --git a/taler-mcig.rst b/taler-mcig.rst index dba3a354..bc32ef7a 100644 --- a/taler-mcig.rst +++ b/taler-mcig.rst @@ -541,7 +541,7 @@ The backend returns ``200 OK`` with body: // PaymentResponse { - "sig": FIXME + "sig": "..." // EddsaSignature } FIXME: At this point, does the wallet need to query (status)? -- cgit v1.2.3