summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-05 10:17:42 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-05 10:17:42 +0100
commit9b0714b385020db4ce380fcb995b228727f53a33 (patch)
tree204629c6851745f2c95f5b127c6960a9f4e70665
parenta8844725aa08f872eb164cc7370e263480a778d1 (diff)
downloaddeployment-9b0714b385020db4ce380fcb995b228727f53a33.tar.gz
deployment-9b0714b385020db4ce380fcb995b228727f53a33.tar.bz2
deployment-9b0714b385020db4ce380fcb995b228727f53a33.zip
add credit/debit restrictions
-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