Bad request (UUID missing)
"; return; } session_start(); $payments = get($_SESSION['payments'], array()); $my_payment = get($payments[$hc]); // This will keep the query parameters. $pay_url = url_rel("pay.php"); $offering_url = url_rel("checkout.php", true); if (null === $my_payment) { // TODO: show spinner after timeout echo "you do not have the session state for this contract: " . $hc . "
"; echo "Asking the wallet to re-execute it ...
"; echo ""; return; } if (true !== get($my_payment["is_payed"], false)) { // TODO: show spinner after timeout echo "you have not payed for this contract: " . $hc . "
"; echo "Asking the wallet to re-execute it ...
"; echo ""; return; } $receiver = $my_payment["receiver"]; $news = false; switch ($receiver) { case "Taler": $news = "https://taler.net/news"; break; case "GNUnet": $news = "https://gnunet.org/"; break; case "Tor": $news = "https://www.torproject.org/press/press.html.en"; break; } $msg = "Thanks for donating to " . $receiver . ".
"; if ($news) { $msg .= "Check our latest news!
"; } echo $msg; echo ""; ?>