commit 9b0714b385020db4ce380fcb995b228727f53a33 parent a8844725aa08f872eb164cc7370e263480a778d1 Author: Christian Grothoff <christian@grothoff.org> Date: Tue, 5 Mar 2024 10:17:42 +0100 add credit/debit restrictions Diffstat:
| M | regional-currency/setup-exchange.sh | | | 10 | +++++++++- |
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git 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