diff options
Diffstat (limited to 'copylib/config.php')
-rw-r--r-- | copylib/config.php | 25 |
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(); + } +} +?> |