merchant

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

commit 2d62433bee7894d6b3d7b06a8f8dc29a6a813e22
parent bbe743a39441907b2f053a97b3e71804c7a4fbd3
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Mon, 15 Feb 2016 18:38:19 +0100

minor fix to get demo-shop use the "discover currency" library

Diffstat:
Msrc/frontend/generate_taler_contract.php | 1+
Msrc/frontend/index.php | 2+-
Msrc/frontend_lib/config.php | 4++--
3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/frontend/generate_taler_contract.php b/src/frontend/generate_taler_contract.php @@ -16,6 +16,7 @@ */ include '../frontend_lib/util.php'; +include "../frontend_lib/config.php"; session_start(); diff --git a/src/frontend/index.php b/src/frontend/index.php @@ -115,7 +115,7 @@ require_once "../frontend_lib/config.php"; <option value="6.0">5 <?php echo $MERCHANT_CURRENCY; ?> (*)</option> <option value="10.0">10 <?php echo $MERCHANT_CURRENCY; ?></option> </select> - <input type="hidden" name="donation_currency" value="KUDOS"/> + <input type="hidden" name="donation_currency" value=<?php echo $MERCHANT_CURRENCY; ?>/> <input type="submit" name="keyName" value="Donate!"/> <br> <br> diff --git a/src/frontend_lib/config.php b/src/frontend_lib/config.php @@ -1,7 +1,7 @@ <?php -$explicit_currency = false; -//$explicit_currency = "EUR"; +//$explicit_currency = false; +$explicit_currency = "EUR"; $host = $_SERVER["HTTP_HOST"]; switch ($host) {