summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2015-11-19 10:28:54 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2015-11-19 10:28:54 +0100
commit0f3e3e1fed1550bde1f2eb442255a8f7d3ef5d72 (patch)
treee36df3adb4738b013cbd803c6e7de7f2ac0ee28d
parentde326a3ac32aa371b416bea9f8c2963163cae0b3 (diff)
downloadmerchant-0f3e3e1fed1550bde1f2eb442255a8f7d3ef5d72.tar.gz
merchant-0f3e3e1fed1550bde1f2eb442255a8f7d3ef5d72.tar.bz2
merchant-0f3e3e1fed1550bde1f2eb442255a8f7d3ef5d72.zip
json fullfillment URL
-rw-r--r--src/frontend/pay.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/frontend/pay.php b/src/frontend/pay.php
index 624be97e..55aaf9a3 100644
--- a/src/frontend/pay.php
+++ b/src/frontend/pay.php
@@ -94,12 +94,13 @@ 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", "text/html");*/
+ . $_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>";*/
- echo "http://" + $_SERVER['SERVER_NAME'];
+ $ffill_obj = array ("fullfillment_page" => "http://" + $_SERVER['SERVER_NAME']);
+ echo json_encode ($ffill_obj);
}
?>