From 9ec51e8031d54616faea2c769791fdbbcfd8b3eb Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 18 Dec 2015 10:57:36 +0100 Subject: Remove session check --- src/frontend/pay.php | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/frontend/pay.php b/src/frontend/pay.php index 97ee5290..d9a605bc 100644 --- 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; @@ -113,14 +106,13 @@ if ($status_code != 200) gotten from the backend (which is forwarding 'as is' the error gotten from the mint) */ 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(); } ?> -- cgit v1.2.3 From 32008b8c50c1d33833a26f80e8a14487c7773f7a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 18 Dec 2015 11:07:48 +0100 Subject: Add debugging output. --- src/frontend/pay.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/pay.php b/src/frontend/pay.php index d9a605bc..1d5f13e4 100644 --- a/src/frontend/pay.php +++ b/src/frontend/pay.php @@ -105,6 +105,7 @@ 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"; echo $resp->body->toString (); } else -- cgit v1.2.3 From 20871c37ede3d4df984257e9547ef0554dffeea9 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 18 Dec 2015 11:40:36 +0100 Subject: More debugging output. --- src/frontend/pay.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/pay.php b/src/frontend/pay.php index 1d5f13e4..090b6525 100644 --- a/src/frontend/pay.php +++ b/src/frontend/pay.php @@ -105,7 +105,9 @@ 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"; + echo "Error came from the backend\n"; + echo "json_encode ($new_deposit_permission)" + echo "\n"; echo $resp->body->toString (); } else -- cgit v1.2.3