fix for notifications
[electrum-nvc.git] / scripts / merchant.readme
1 merchant.py is a daemon that manages payments for a web server. It
2 creates Bitcoin addresses using a master public key (so you do not
3 leave your private keys on the server), detects when payments are
4 received and notifies your web application.
5
6 The workflow goes like this:
7
8  - the server sends a request to the daemon via POST. the request
9    contains an ID, an amount to be paid, an expiration period.
10
11  - the daemon answers with a Bitcoin address, where the customer needs
12    to send the coins.
13
14  - later, the daemon will send a POST to the webserver, to notify that
15    payment has been received OR that the request has expired
16
17
18 Since addresses are generated using an Electrum master public key, it
19 is possible to visualize payments in the Electrum client; you will,
20 however, need to manually adjust your "gap limit". 
21
22 In order to use this script, first edit and rename
23 merchant.conf.template to merchant.conf