merchant

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

commit 6d18f1bfba939c2446c86c1152c274029bd5d63c
parent 872e69d8606fbcfbde93989031d832defc5aae8c
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Wed, 28 Oct 2015 22:47:25 +0100

minor change

Diffstat:
Msrc/backend/taler-merchant-httpd_contract.c | 1+
Msrc/frontend/generate_taler_contract.php | 5+++--
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_contract.c b/src/backend/taler-merchant-httpd_contract.c @@ -163,5 +163,6 @@ MH_handler_contract (struct TMH_RequestHandler *rh, /* store relevant values for this contract, in DB */ //res = MERCHANT_handle_contract (); + return TMH_RESPONSE_reply_json (connection, root, MHD_HTTP_OK); } diff --git a/src/frontend/generate_taler_contract.php b/src/frontend/generate_taler_contract.php @@ -24,7 +24,8 @@ 3. forward the response with the contract from the backend to to the wallet */ -$cli_debug = false; +$cli_debug = true; +$backend_test = true; // 1) recover the session information session_start(); @@ -124,7 +125,7 @@ $json = json_encode (array ('amount' => array ('value' => $value, 'province' => 'Test Province', 'ZIP code' => 4908))), JSON_PRETTY_PRINT); -if ($cli_debug) +if ($cli_debug && !$backend_test) { echo $json . "\n"; exit;