summaryrefslogtreecommitdiff
path: root/copylib/config.php
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-02-23 17:12:18 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-02-23 17:12:18 +0100
commitaf03e45182f4f450621ce98a6bd23bfaf2671c59 (patch)
tree73f657e45b51dc3dfca4de0dbef08ab9d23f21e9 /copylib/config.php
parentf8c673dd6ae62fe61ea0c6522c882b1ceb7b6e61 (diff)
downloadmerchant-af03e45182f4f450621ce98a6bd23bfaf2671c59.tar.gz
merchant-af03e45182f4f450621ce98a6bd23bfaf2671c59.tar.bz2
merchant-af03e45182f4f450621ce98a6bd23bfaf2671c59.zip
addressing #4197, to test
Diffstat (limited to 'copylib/config.php')
-rw-r--r--copylib/config.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/copylib/config.php b/copylib/config.php
new file mode 100644
index 00000000..c6029c0c
--- /dev/null
+++ b/copylib/config.php
@@ -0,0 +1,25 @@
+<?php
+
+$REFUND_DELTA = 'P3M';
+// set to false when done with local tests
+$explicit_currency = "PUDOS";
+$MERCHANT_CURRENCY = $explicit_currency;
+
+$host = $_SERVER["HTTP_HOST"];
+switch ($host) {
+case "blog.demo.taler.net":
+case "shop.demo.taler.net":
+ $MERCHANT_CURRENCY = "KUDOS";
+ break;
+case "blog.test.taler.net":
+case "shop.test.taler.net":
+ $MERCHANT_CURRENCY = "PUDOS";
+ break;
+default:
+ if(false == $explicit_currency){
+ http_response_code (500);
+ echo "<p>Bank configuration error: No currency for domain $host</p>\n";
+ die();
+ }
+}
+?>