merchant-frontend-examples

ZZZ: Inactive/Deprecated
Log | Files | Refs

commit a8995e7bd8f16ab40a78800415464a7bf92481cd
parent 9d7c818c56b6a27dd5a3b8e2f66127a36147ee8b
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Wed, 14 Dec 2016 10:36:11 +0100

Reformulation in /history section.
Link to backoffice.html in fulfillment page.

Diffstat:
Mphp/doc/tutorial.texi | 11++++++-----
Mphp/fulfillment.php | 2+-
Mphp/track-transfer.php | 2+-
3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/php/doc/tutorial.texi b/php/doc/tutorial.texi @@ -515,11 +515,12 @@ parts: @itemize @item The @code{/history.php?days=<DAYSAGO>} script, whose @code{days} - parameter indicates how old the oldest returned transaction should - be in terms of days. The script will then translate @emph{<DAYSAGO>} - in a timestamp, and issue the call to backend's - @code{/history?date=<TIMESTAMP>}. The data it receives from the - backend is finally returned in JSON format to the browser. + parameter specifies to retrieve transactions timestamped at most + @emph{<DAYSAGO>} days ago. + The script will then translate @emph{<DAYSAGO>} in a timestamp, + and issue the call to backend's @code{/history?date=<TIMESTAMP>}. + The data it receives from the backend is finally returned in JSON + format to the browser. @item A JavaScript function, imported within @code{backoffice.html}, that issues the HTTP GET to @code{/history.php?days=<DAYSAGO>} diff --git a/php/fulfillment.php b/php/fulfillment.php @@ -11,7 +11,7 @@ echo sprintf("<p>Thanks for your donation!</p> <br> <p>The transaction ID was: %s; use it to - track your money.</p>", + <a href=\"backoffice.html\">track</a> your money.</p>", $_SESSION['transaction_id']); return; } diff --git a/php/track-transfer.php b/php/track-transfer.php @@ -38,7 +38,7 @@ $pretty_date = get_pretty_date($json_response->execution_time); $amount = get_amount($json_response->total); echo "<p>$wtid: $amount transferred on $pretty_date. - The list of Taler transactions involved in $wtid is shown below:</p>"; + The list of involved transactions is shown below:</p>"; echo "<ul>"; foreach ($json_response->deposits as $entry){