commit 1e2cd1b56cdee70b84a499dbff83eca9421aa700
parent 945d92aa1b298b3b702140aa199f77a4d8fb48d1
Author: Florian Dold <florian.dold@gmail.com>
Date: Sun, 9 Aug 2020 00:17:52 +0530
headings for readability
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/design-documents/007-payment.rst b/design-documents/007-payment.rst
@@ -29,6 +29,9 @@ Session-bound payment flow for Web resources
In this payment flow, the user initiates the payment by navigating to a
paywalled Web resource. Let *resource-URL* be the URL of the paywalled resource.
+Storefront
+^^^^^^^^^^
+
When *resource-URL* is requested, the storefront runs the following steps:
1. Extract the the *order-ID* (or null) and *resource name* from the *resource-URL*.
@@ -47,6 +50,8 @@ When *resource-URL* is requested, the storefront runs the following steps:
and return to the client the content for *resource name*. **Terminate.**
9. Otherwise, the *order-status* is unpaid. Redirect the client to *client-order-status-URL*. **Terminate.**
+Backend Private Order Status
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The merchant backend runs the following steps to generate the
*client-order-status-URL* when processing a request for ``GET
@@ -67,6 +72,9 @@ The merchant backend runs the following steps to generate the
{backendBaseUrl}/orders/{order-ID}?h_contract={contract-hash}&session_id={session-ID}
+Backend Client Order Status Page
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
The merchant backend runs the following steps to generate the HTML page for
``GET /orders/{order-ID}?session_id={session-ID}&claim_token={claim-token}&h_contract={contract-hash}``: