From 8526915420436d13e1da07e66db20a9f8de6c75a Mon Sep 17 00:00:00 2001 From: thomasv Date: Fri, 26 Oct 2012 14:00:28 +0200 Subject: [PATCH] readme for merchant script --- scripts/merchant.readme | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 scripts/merchant.readme diff --git a/scripts/merchant.readme b/scripts/merchant.readme new file mode 100644 index 0000000..46479b4 --- /dev/null +++ b/scripts/merchant.readme @@ -0,0 +1,23 @@ +merchant.py is a daemon that manages payments for a web server. It +creates Bitcoin addresses using a master public key (so you do not +leave your private keys on the server), detects when payments are +received and notifies your web application. + +The workflow goes like this: + + - the server sends a request to the daemon via POST. the request + contains an ID, an amount to be paid, an expiration period. + + - the daemon answers with a Bitcoin address, where the customer needs + to send the coins. + + - later, the daemon will send a POST to the webserver, to notify that + payment has been received OR that the request has expired + + +Since addresses are generated using an Electrum master public key, it +is possible to visualize payments in the Electrum client; you will, +however, need to manually adjust your "gap limit". + +In order to use this script, first edit and rename +merchant.conf.template to merchant.conf -- 1.7.1