merchant

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

commit 7878dac503af039f2fcbc17585187af0554da3e7
parent dfb27f3b6d3de7b28c298eaa1d8d84b70467d61f
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon, 25 Jan 2016 14:36:40 +0100

add fulfillment URL in the right place

Diffstat:
Msrc/frontend/generate_taler_contract.php | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontend/generate_taler_contract.php b/src/frontend/generate_taler_contract.php @@ -107,9 +107,8 @@ $contract = array( 'province' => 'Test Province', 'ZIP code' => 4908))); -$json = json_encode( array( - 'contract' => $contract, - 'fulfillment_url' => (url_rel("fulfillment.php") . '?uuid=${H_contract}') +$json = json_encode(array( + 'contract' => $contract ), JSON_PRETTY_PRINT); $url = url_join("http://".$_SERVER["HTTP_HOST"], "backend/contract"); @@ -143,6 +142,7 @@ if ($status_code != 200) else { $got_json = json_decode($resp->body->toString(), true); + $got_json['fulfillment_url']= url_rel("fulfillment.php") . '?uuid=${H_contract}'; $_SESSION['H_contract'] = $got_json["H_contract"]; echo json_encode ($got_json, JSON_PRETTY_PRINT); }