[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: expand ‘PayRequest’ example; add som
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: expand ‘PayRequest’ example; add some notes |
Date: |
Tue, 13 Apr 2021 15:52:30 +0200 |
This is an automated email from the git hooks/post-receive script.
ttn pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new a3b06f1 expand ‘PayRequest’ example; add some notes
a3b06f1 is described below
commit a3b06f13b2a8e7059e233a3216a40f37a6b2fa61
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
AuthorDate: Tue Apr 13 09:50:42 2021 -0400
expand ‘PayRequest’ example; add some notes
---
taler-mcig.rst | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
diff --git a/taler-mcig.rst b/taler-mcig.rst
index 77a21a1..dba3a35 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
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-docs] branch master updated: expand ‘PayRequest’ example; add some notes,
gnunet <=