gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] branch master updated (002eea9 -> a36d95c)


From: gnunet
Subject: [taler-docs] branch master updated (002eea9 -> a36d95c)
Date: Sun, 16 Aug 2020 16:15:37 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a change to branch master
in repository docs.

    from 002eea9  change wallet refund spec
     new 3653625  use 202 if JSON was requested
     new a36d95c  Merge branch 'master' of git+ssh://git.taler.net/docs

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 core/api-merchant.rst | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/core/api-merchant.rst b/core/api-merchant.rst
index f576e10..3c0ea71 100644
--- a/core/api-merchant.rst
+++ b/core/api-merchant.rst
@@ -1389,6 +1389,12 @@ Payment processing
   ignored (treated as zero). If the backend installation does not include the
   required HTML templates, a 406 status code is returned.
 
+  In the case that the request was made with a claim token (even the wrong one)
+  and the order was claimed and paid, the server will redirect the client to
+  the fulfillment URL.  This redirection will happen with a 302 status code
+  if the "Accept" header specified "text/html", and with a 202 status code
+  otherwise.
+
   **Request:**
 
   :query h_contract=HASH: hash of the order's contract terms (this is used to 
authenticate the wallet/customer in case $ORDER_ID is guessable). Required once 
an order was claimed.
@@ -1405,6 +1411,10 @@ Payment processing
 
   :status 200 OK:
     The response is a `StatusPaidResponse`.
+  :status 202 Accepted:
+    The response is a `StatusGotoResponse`. Only returned if the content type 
requested was not HTML.
+  :status 302 Found:
+    The client should go to the indicated location. Only returned if the 
content type requested was HTML.
   :status 402 PaymentRequired:
     The response is a `StatusUnpaidResponse`.
   :status 403 Forbidden:
@@ -1430,6 +1440,15 @@ Payment processing
 
     }
 
+    .. ts:def:: StatusGotoResponse
+
+    interface StatusGotoResponse {
+      // The client should go to the fulfillment URL, it may be ready or
+      // might have some other interesting status.
+      fulfillment_url: string;
+
+    }
+
   .. ts:def:: StatusUnpaidResponse
 
     interface StatusUnpaidResponse {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]