merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 3933e70e713a090a9a5dd531bc82498945d42880
parent abe5971f7398bda68c0e2757ccb8cdbe23d081e5
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Tue, 11 Aug 2015 12:42:44 +0200

last commit before switching to the branch "light", \
aimed to cut off unneeded code got from the mint tree. \
Please, be aware that in this state the file src/backend/Makefile.am \
has some lines with hardcoded paths, this tune it as needed.
As of this commit, the merchant is able to receive a JSON request
for generating a certificate, store it, and return a JSON response.
To be documented.

Diffstat:
Msrc/backend/Makefile.am | 6+++---
Msrc/frontend/cert.php | 5++---
2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/backend/Makefile.am b/src/backend/Makefile.am @@ -8,10 +8,10 @@ taler_merchant_httpd_SOURCES = \ taler-merchant-httpd.c \ merchant.c merchant.h \ merchant_db.c merchant_db.h \ - taler-mint-httpd_keystate.c taler-mint-httpd_keystate.h \ taler-mint-httpd_db.c taler-mint-httpd_db.h \ taler-mint-httpd_parsing.c taler-mint-httpd_parsing.h \ taler-mint-httpd_responses.c taler-mint-httpd_responses.h \ + taler-mint-httpd_keystate.c taler-mint-httpd_keystate.h \ taler-mint-httpd_mhd.c taler-mint-httpd_mhd.h \ taler-mint-httpd_admin.c taler-mint-httpd_admin.h \ taler-mint-httpd_deposit.c taler-mint-httpd_deposit.h \ @@ -20,8 +20,8 @@ taler_merchant_httpd_SOURCES = \ taler_merchant_httpd_LDADD = \ $(LIBGCRYPT_LIBS) \ - /home/marcello/trans_mint/src/util/libtalerutil.la \ - /home/marcello/trans_mint/src/mintdb/libtalermintdb.la \ + /home/marcello/Taler/trans_mint/src/util/libtalerutil.la \ + /home/marcello/Taler/trans_mint/src/mintdb/libtalermintdb.la \ -lmicrohttpd \ -ljansson \ -lgnunetutil \ diff --git a/src/frontend/cert.php b/src/frontend/cert.php @@ -60,12 +60,11 @@ else{ 'currency' => $currency))); // test // echo $json; - - //echo phpinfo (); + // echo phpinfo (); // crafting the request $req = new http\Client\Request ("POST", - "http://" . $SERVER["SERVER_NAME"] . "/backend" . "/contract", + "http://" . $_SERVER["SERVER_NAME"] . "/backend" . "/contract", //"http://localhost:9898/", array ("Content-Type" => "application/json")); $req->getBody()->append ($json);