aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/README
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/README')
-rw-r--r--src/frontend/README24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/frontend/README b/src/frontend/README
new file mode 100644
index 00000000..a89b9d36
--- /dev/null
+++ b/src/frontend/README
@@ -0,0 +1,24 @@
+This directory contains the files implementing the frontend of the new merchant architecture.
+
+Only tested on nginx. To run the website, it suffices to have all the files in the same
+directory, then having PHP enabled, and setting the following two redirections:
+
+1. your_site/certal/ => your_site/cert.php
+2. your_site/payler/ => your_site/pay.php
+
+File |What implements
+--------------------------------
+o index.html | The "negotiation" view, that is the form
+ that allows the user to choose the product to buy.
+
+o checkout.php | The "payment selection" that is the form
+ that allows the user to choose the payment method he wishes to use.
+ It also implements the request of certificate and its showing as a
+ popup window (by JavaScript in it). For debugging purposes, it has a
+ certificate hardcoded in it.
+
+o cert.php | Replies with a JSON certificate that is held in a 'session' variable.
+
+o pay.php | Actual receiving of money, plus it gives back a "fullfillment" page
+ that informs the user of his well ended deal.
+