summaryrefslogtreecommitdiff
path: root/examples/shop/README
blob: 80d9d6bfd71e814b5b38fcc78657c4448cf4227f (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
INSTALL
=======

This guide is for running the 'shop' example, which require PHP and is
served via nginx.

Assuming that your system has a working PHP, the following
pecl packages are needed (the preferred way to install them
is with the pecl package manager, and not via your distribution's):

pecl_http
propro
raphf

As for the versioning, our working setup is using:

PHP 5.6
pecl_http 2.4.3 stable
propro 1.0.0 stable
raphf 1.1.0 stable

You can now refer to the nginx configuration examples (nginx_example.conf)
in this directory

FILES
=====

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 .php and .html files
in the same directory, and having PHP (with the extension 'pecl_http' enabled) enabled.

File		|What implements
--------------------------------
o index.html	| The homepage. Here it is possible to decide how much donate
                  to whom you would like.

o fake_wire_transfer.php | PHP script that takes the wire transfer request and passes it on
                         | to the /admin/add/incoming API of the demo-exchange.

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 trigger the certificate
		  viewer in the extension when it arrives in the customer's machine.

o pay.php	| Actual receiving of money, plus it gives back a "fullfillment" page
		  that informs the user of his well ended deal.