aboutsummaryrefslogtreecommitdiff
path: root/contrib/exchange-template
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-02 14:24:45 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-02 14:29:44 +0200
commitcb55c1a3af9f56a6da38e5589e72df0b70d355b1 (patch)
tree5f9a3af7d9073249f77ce56c690844a6cb27c3e7 /contrib/exchange-template
parent7a20062bafed42f937c5388aed09042aad7014c0 (diff)
Changing configuration structure to enable multiple accounts.
This change enables using multiple wire plugins at the same time. Also, we now distinguish between the wire plugin (i.e. EBICS or taler_bank) and the wire method (i.e. SEPA or x-taler-bank) that the wire plugin is implementing. The "taler-bank" wire method was renamed from "test" to "x-taler-bank". This also changes the format of the /wire response of the exchange, as we now need to return multiple accounts. Note that wire fees are specified per wire method, not per wire account. taler-exchange-keyup now automatically signs all of the /wire responses in the location specified by the configuration. Account identification in wire plugins was changed to use payto://-URLs instead of method-specific JSON fields. Signing and validation of /wire responses was moved from each wire plugin to a generic validation method in libtalerutil (crypto) or libtalerjson (for JSON-formatted inputs). Convenience methods were added to generate JSON for wire accounts (salting, signing). Various section and option names were adjusted to streamline the configuration and make it more consistent overall. Documentation was updated as well.
Diffstat (limited to 'contrib/exchange-template')
-rw-r--r--contrib/exchange-template/config/exchange-common.conf103
1 files changed, 87 insertions, 16 deletions
diff --git a/contrib/exchange-template/config/exchange-common.conf b/contrib/exchange-template/config/exchange-common.conf
index 47782651d..425bb92b2 100644
--- a/contrib/exchange-template/config/exchange-common.conf
+++ b/contrib/exchange-template/config/exchange-common.conf
@@ -17,27 +17,98 @@ TESTRUN = YES
[exchangedb-postgres]
DB_CONN_STR = "postgres:///talercheck"
+[auditordb-postgres]
+DB_CONN_STR = "postgres:///talercheck"
-[exchange-wire-sepa]
-# Change here to enable SEPA wire transfers.
-ENABLE = NO
-# Response for /wire
-SEPA_RESPONSE_FILE = "sepa.json"
+# Provide account information
+[account-1]
+# Accounts must have a payto:// URL
+URL = payto://METHOD/DETAILS
+
+# To be included in /wire, accounts must have a signed wire file
+# Must match URL.
+WIRE_RESPONSE = ${TALER_CONFIG_HOME}/account-1.json
+
+# For access to the account, we need to know the plugin.
+PLUGIN = "ebics"
-[exchange-wire-outgoing-sepa]
-# TBD
+# TBD: authentication data.
+# Accounts need to be enabled for the aggregator to debit them.
+ENABLE_DEBIT = NO
-[exchange-wire-test]
-# Change here to disable TEST wire transfers.
-ENABLE = YES
+# Accounts need to be enabled for the wirewatcher to look for credits into them.
+ENABLE_CREDIT = YES
+
+[account-2]
+URL = payto://x-taler-wire/bank/2
# Response for /wire
-TEST_RESPONSE_FILE = "test.json"
+# Must match URL.
+WIRE_RESPONSE = ${TALER_CONFIG_HOME}/account-2.json
+
+PLUGIN = taler_bank
+
+# We also may need authentication data.
+TALER_BANK_AUTH_METHOD = "none" # or basic
+# TALER_BANK_USERNAME = user
+# TALER_BANK_PASSWORD = pass
+
+# Accounts need to be enabled for the aggregator to debit them.
+ENABLE_DEBIT = YES
+
+# Accounts need to be enabled for the wirewatcher to look for credits into them.
+ENABLE_CREDIT = YES
+
+
+# Wire fees are specified by wire method, NOT by wire plugin.
+[fees-x-taler-bank]
+# Fees for the forseeable future...
+# If you see this after 2018, update to match the next 10 years...
+WIRE-FEE-2018 = EUR:0.01
+WIRE-FEE-2019 = EUR:0.01
+WIRE-FEE-2020 = EUR:0.01
+WIRE-FEE-2021 = EUR:0.01
+WIRE-FEE-2022 = EUR:0.01
+WIRE-FEE-2023 = EUR:0.01
+WIRE-FEE-2024 = EUR:0.01
+WIRE-FEE-2025 = EUR:0.01
+WIRE-FEE-2026 = EUR:0.01
+WIRE-FEE-2027 = EUR:0.01
+
+CLOSING-FEE-2018 = EUR:0.01
+CLOSING-FEE-2019 = EUR:0.01
+CLOSING-FEE-2020 = EUR:0.01
+CLOSING-FEE-2021 = EUR:0.01
+CLOSING-FEE-2022 = EUR:0.01
+CLOSING-FEE-2023 = EUR:0.01
+CLOSING-FEE-2024 = EUR:0.01
+CLOSING-FEE-2025 = EUR:0.01
+CLOSING-FEE-2026 = EUR:0.01
+CLOSING-FEE-2027 = EUR:0.01
+
+[fees-sepa]
+# Fees for the forseeable future...
+# If you see this after 2018, update to match the next 10 years...
+WIRE-FEE-2018 = EUR:0.01
+WIRE-FEE-2019 = EUR:0.01
+WIRE-FEE-2020 = EUR:0.01
+WIRE-FEE-2021 = EUR:0.01
+WIRE-FEE-2022 = EUR:0.01
+WIRE-FEE-2023 = EUR:0.01
+WIRE-FEE-2024 = EUR:0.01
+WIRE-FEE-2025 = EUR:0.01
+WIRE-FEE-2026 = EUR:0.01
+WIRE-FEE-2027 = EUR:0.01
-# What is the main website of the bank?
-BANK_URL = "https://bank/"
-# Into which account at the 'bank' should incoming
-# wire transfers be made?
-BANK_ACCOUNT_NUMBER = 2
+CLOSING-FEE-2018 = EUR:0.01
+CLOSING-FEE-2019 = EUR:0.01
+CLOSING-FEE-2020 = EUR:0.01
+CLOSING-FEE-2021 = EUR:0.01
+CLOSING-FEE-2022 = EUR:0.01
+CLOSING-FEE-2023 = EUR:0.01
+CLOSING-FEE-2024 = EUR:0.01
+CLOSING-FEE-2025 = EUR:0.01
+CLOSING-FEE-2026 = EUR:0.01
+CLOSING-FEE-2027 = EUR:0.01