aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/README
blob: a89b9d3656ac7b8bbe40ce1d233ba884af53dd01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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.