diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/pay.php | 16 |
1 files 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(); } ?> |