merchant

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

commit 0f3e3e1fed1550bde1f2eb442255a8f7d3ef5d72
parent de326a3ac32aa371b416bea9f8c2963163cae0b3
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Thu, 19 Nov 2015 10:28:54 +0100

json fullfillment URL

Diffstat:
Msrc/frontend/pay.php | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 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); } ?>