summaryrefslogtreecommitdiff
path: root/regional-currency/setup-exchange.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regional-currency/setup-exchange.sh')
-rwxr-xr-xregional-currency/setup-exchange.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/regional-currency/setup-exchange.sh b/regional-currency/setup-exchange.sh
index e4aff34..585f3a0 100755
--- a/regional-currency/setup-exchange.sh
+++ b/regional-currency/setup-exchange.sh
@@ -230,12 +230,20 @@ if test ${DO_OFFLINE} == y; then
upload &>> setup.log
if test ${DO_CONVERSION} == y; then
- say "Conversion account setup..."
+ say "Conversion account setup (restricted to CH-only)..."
sudo -i -u taler-exchange-offline taler-exchange-offline \
enable-account \
"${CONVERSION_PAYTO}" \
conversion-url "${PROTO}://bank.$DOMAIN_NAME/conversion-info/" \
+ debit-restriction \
+ deny \
+ credit-restriction \
+ regex \
+ 'payto://iban/.*/CH.*?receiver-name=.*' \
+ 'Swiss only' \
+ '{ "de" : "nur Schweiz", \
+ "fr" : "Suisse uniquement" }'
upload &>> setup.log
fi
fi