merchant

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

commit 9ec51e8031d54616faea2c769791fdbbcfd8b3eb
parent 664100916192b1beb993addbfd33a1c8a8788c2c
Author: Florian Dold <florian.dold@gmail.com>
Date:   Fri, 18 Dec 2015 10:57:36 +0100

Remove session check

Diffstat:
Msrc/frontend/pay.php | 16++++------------
1 file changed, 4 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; @@ -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(); } ?>