commit 15f6b2b62ac0f3e3338bb2b77091d5d7c6b63087
parent b95d781d488799fde4eec7a17970ed53e1029578
Author: MS <ms@taler.net>
Date: Mon, 23 Aug 2021 22:10:17 -1100
debug
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/cli/test_iban.sh b/src/cli/test_iban.sh
@@ -59,14 +59,15 @@ function prepare_sandbox_account() {
trap cleanup EXIT
-# Transfer _always_ from debit to credit/anastasis account.
+# Transfer only from debit to credit/anastasis account.
+# This function moves funds directly at the Sandbox. No need
+# to pass through the Nexus+Ebics layer to issue the payment
# $1 = amount ($CURRENCY:X.Y), $2 = subject.
function wire_transfer_to_anastasis() {
libeufin-sandbox make-transaction \
--debit-account=sandbox-account-debit \
--credit-account=sandbox-account-credit "$1" "$2"
- # Download new transactions now, so that they show up in the
- # Anastasis facade.
+ # Sync nexus with sandbox
export LIBEUFIN_NEXUS_USERNAME=$CREDIT_USERNAME
export LIBEUFIN_NEXUS_PASSWORD=$CREDIT_PASSWORD
libeufin-cli accounts fetch-transactions nexus-bankaccount-credit > /dev/null
@@ -74,8 +75,6 @@ function wire_transfer_to_anastasis() {
# $1 = facade base URL. Merely a debug utility.
function see_anastasis_transactions_via_facade() {
- export LIBEUFIN_NEXUS_USERNAME=$CREDIT_USERNAME
- export LIBEUFIN_NEXUS_PASSWORD=$CREDIT_PASSWORD
curl -s --user "$CREDIT_USERNAME:$CREDIT_PASSWORD" "${1}history/incoming?delta=5" | jq
}
@@ -455,7 +454,7 @@ SUBJECT="Anastasis ${NUMBER}"
# wire_transfer_to_anastasis "$CURRENCY:1" "Sandbox-only transaction 2"
#
# This command (see function definition above) checks the history via the facade API:
-# see_anastasis_transactions_via_facade $FACADE_URL # via Nexus/facade.
+# see_anastasis_transactions_via_facade $FACADE_URL
bash