merchant

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

commit 2a270be0497b88c95936bfcd09b5ecd83141b94c
parent fa32cc5feaf801651c18e3ad1c812c336f3a359d
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Fri, 18 Dec 2015 13:57:29 +0100

Merge branch 'master' of ssh://taler.net/var/git/merchant

Diffstat:
Msrc/frontend/pay.php | 19+++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/src/frontend/pay.php b/src/frontend/pay.php @@ -39,13 +39,6 @@ if ($_GET['backend_test'] == 'no') session_start(); -if (!$cli_debug && (! isset($_SESSION['receiver']))) -{ - http_response_code(400); - echo "Please, donate to someone before landing here!"; - exit(); -} - $cli_debug = false; $backend_test = true; @@ -112,15 +105,17 @@ if ($status_code != 200) /* error: just forwarding to the wallet what gotten from the backend (which is forwarding 'as is' the error gotten from the mint) */ + echo "Error came from the backend\n"; + echo "json_encode ($new_deposit_permission)" + echo "\n"; echo $resp->body->toString (); - } else { -$_SESSION['payment_ok'] = true; -http_response_code (301); -header("Location: http://" . $_SERVER["SERVER_NAME"] . "/fullfillment"); -die(); + $_SESSION['payment_ok'] = true; + http_response_code (301); + header("Location: http://" . $_SERVER["SERVER_NAME"] . "/fullfillment"); + die(); } ?>