summaryrefslogtreecommitdiff
path: root/src/frontend/pay.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/pay.php')
-rw-r--r--src/frontend/pay.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/frontend/pay.php b/src/frontend/pay.php
index face8080..b5061d39 100644
--- a/src/frontend/pay.php
+++ b/src/frontend/pay.php
@@ -25,6 +25,15 @@
*/
+session_start();
+
+if (! isset($_SESSION['receiver']))
+{
+ http_response_code(400);
+ echo "Please, donate to someone before landing here!";
+ exit();
+}
+
$cli_debug = false;
$backend_test = true;
@@ -92,6 +101,7 @@ if ($status_code != 200)
}
else
{
+$_SESSION['payment_ok'] = true;
http_response_code (301);
header("Location: http://" . $_SERVER["SERVER_NAME"] . "/fullfillment");
die();