merchant

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

commit 33f69ee18296d09a9b93104a0477f0d944e0fd17
parent 6c308b68033b284a9811ab932ab616aa8319d546
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Thu, 24 Dec 2015 17:17:34 +0100

comments in frontend

Diffstat:
Msrc/frontend/pay.php | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/frontend/pay.php b/src/frontend/pay.php @@ -95,7 +95,7 @@ if ($cli_debug && !$backend_test) // Backend is relative to the shop site. /** * WARNING: the "shop site" is '"http://".$_SERVER["HTTP_HOST"]' - * So do not attach $_SERVER["HTTP_HOST"] before proxying requests + * So do not attach $_SERVER["REQUEST_URI"] before proxying requests * to the backend */ //$url = (new http\URL("http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"])) @@ -133,6 +133,11 @@ else { $_SESSION['payment_ok'] = true; http_response_code (301); + /** + * WARNING: the "shop site" is '"http://".$_SERVER["HTTP_HOST"]' + * So do not attach $_SERVER["REQUEST_URI"] before proxying requests + * to the backend + */ //$url = (new http\URL("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]")) $url = (new http\URL("http://$_SERVER[HTTP_HOST]")) ->mod(array ("path" => "fulfillment.php"), http\Url::JOIN_PATH);