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.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/frontend/pay.php b/src/frontend/pay.php
index e7e9e274..face8080 100644
--- a/src/frontend/pay.php
+++ b/src/frontend/pay.php
@@ -92,15 +92,9 @@ if ($status_code != 200)
}
else
{
- /*$resp_page = "<html><title>GNU Taler payment</title>"
- . "<body>Payment succeeded! Go to <a href=\"http://"
- . $_SERVER["SERVER_NAME"] . "\">our homepage</a></body></html>";*/
- header("Content-Type", "application/json");
- /*$resp_page = "<html><title>GNU Taler payment</title>"
- . "<body>Payment succeeded!</body></html>";*/
-
- $ffill_obj = array ("fullfillment_page" => "http://" . $_SERVER['SERVER_NAME'] . "/fullfillment");
- echo json_encode ($ffill_obj);
+http_response_code (301);
+header("Location: http://" . $_SERVER["SERVER_NAME"] . "/fullfillment");
+die();
}
?>