exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit fbebb8f5804df9429c73025cb7273dc095fb80a1
parent ed7e174ebfea468bc5087c35a82f370685f5667b
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sat,  9 Aug 2025 15:43:46 +0200

try to get taler-unified-setup to work with libeufin-bank

Diffstat:
Msrc/testing/taler-unified-setup.sh | 12++++++++++--
Msrc/testing/test_exchange_api.conf | 4+++-
2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/testing/taler-unified-setup.sh b/src/testing/taler-unified-setup.sh @@ -299,8 +299,16 @@ register_bank_account() { then # shellcheck disable=SC2001 ENAME=$(echo "$3" | sed -e "s/ /+/g") - # Note: this assumes that $3 has no spaces. Should probably escape in the future.. - PAYTO="payto://iban/SANDBOXX/${MAYBE_IBAN}?receiver-name=$ENAME" + if [ "$WIRE_DOMAIN" = "x-taler-bank" ] + then + # hostname + OPERATOR="localhost" + MAYBE_IBAN="$1" + else + # BIC + OPERATOR="SANDBOXX" + fi + PAYTO="payto://${WIRE_DOMAIN}/${OPERATOR}/${MAYBE_IBAN}?receiver-name=$ENAME" BODY='{"username":"'"$1"'","password":"'"$2"'","is_taler_exchange":'"$IS_EXCHANGE"',"name":"'"$3"'","payto_uri":"'"$PAYTO"'"}' else BODY='{"username":"'"$1"'","password":"'"$2"'","is_taler_exchange":'"$IS_EXCHANGE"',"name":"'"$3"'"}' diff --git a/src/testing/test_exchange_api.conf b/src/testing/test_exchange_api.conf @@ -19,7 +19,9 @@ DEFAULT_ADMIN_DEBT_LIMIT = EUR:2000 REGISTRATION_BONUS_ENABLED = yes REGISTRATION_BONUS = EUR:100 SUGGESTED_WITHDRAWAL_EXCHANGE = http://localhost:8081/ -WIRE_TYPE = iban +WIRE_TYPE = x-taler-bank +X_TALER_BANK_PAYTO_HOSTNAME = localhost +ALLOW_REGISTRATION = YES IBAN_PAYTO_BIC = SANDBOXX SERVE = tcp PORT = 8082