merchant

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

commit 48e87b51c6945c0ed653bf78a4a19b0712e6cdb9
parent fa137c5e5dac2ef61d04e4ffa378a0705da33075
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon, 25 Jan 2016 15:11:47 +0100

uuid check

Diffstat:
Msrc/frontend/fulfillment.php | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/frontend/fulfillment.php b/src/frontend/fulfillment.php @@ -49,12 +49,17 @@ function generate_msg ($link){ $hc = get($_GET["UUID"]); -if (!$hc) +if (empty($hc)) { http_response_code(400); echo "<p>Bad request (UUID missing)</p>"; return; } +else +{ + echo "yay!"; + return; +} session_start(); @@ -73,7 +78,7 @@ if (isset($_SESSION['payment_ok'])) $news = "https://www.torproject.org/press/press.html.en"; break; } - echo generate_msg ($news); + echo generate_msg($news); die(); }